forked from jverkoey/nimbus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
executable file
·58 lines (48 loc) · 2.15 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
#
# Copyright 2011 Jeff Verkoeyen
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
echo "Nimbus template installer"
XCODE3_BASE_TEMPLATE_DIR="$HOME/Library/Application Support/Developer/Shared/Xcode"
XCODE4_BASE_TEMPLATE_DIR="$HOME/Library/Developer/Xcode/Templates"
# Installs the xcode 3 project templates. Overwrites any existing files.
copy_xcode3_project_templates(){
echo "Installing xcode 3 project templates"
TEMPLATE_DIR="${XCODE3_BASE_TEMPLATE_DIR}/Project Templates/Nimbus Application"
mkdir -p "${TEMPLATE_DIR}"
cp -r xcode3/projects/ "${TEMPLATE_DIR}"
}
# Installs the xcode 3 source templates. Overwrites any existing files.
copy_xcode3_file_templates(){
echo "Installing xcode 3 file templates"
TEMPLATE_DIR="${XCODE3_BASE_TEMPLATE_DIR}/File Templates"
mkdir -p "${TEMPLATE_DIR}"
cp -r xcode3/source/ "${TEMPLATE_DIR}"
}
# Installs the xcode 4 project templates. Overwrites any existing files.
copy_xcode4_project_templates(){
echo "Installing xcode 4 project templates"
TEMPLATE_DIR="${XCODE4_BASE_TEMPLATE_DIR}/Project Templates/Nimbus Application"
mkdir -p "${TEMPLATE_DIR}"
cp -r xcode4/projects/ "${TEMPLATE_DIR}"
}
copy_xcode3_project_templates
copy_xcode3_file_templates
copy_xcode4_project_templates
#mkdir -p ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/Nimbus\ Application
#cp -r projects/ ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/Nimbus\ Application
# Installs the source templates. Overwrites any existing files.
#mkdir -p ~/Library/Application\ Support/Developer/Shared/Xcode/File\ Templates
#cp -r source/ ~/Library/Application\ Support/Developer/Shared/Xcode/File\ Templates