Skip to content

Commit

Permalink
Install Xcode4 template
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed Mar 14, 2011
1 parent 1f389db commit 1585df7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 45 deletions.
31 changes: 30 additions & 1 deletion install-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,35 @@ copy_file_templates(){
echo done!
}

copy_project_templates
# Xcode4 templates
copy_xcode4_project_templates(){
TEMPLATE_DIR="$HOME/Library/Developer/Xcode/Templates/cocos2d/"

if [[ ! -d "$TEMPLATE_DIR" ]]; then
echo '...creating cocos2d template directory'
echo ''
mkdir -p "$TEMPLATE_DIR"
fi

print_template_banner "Installing Xcode 4 cocos2d iOS template"

DST_DIR="$TEMPLATE_DIR"
LIBS_DIR="$DST_DIR""cocos2dlibs.xctemplate/libs/"

mkdir -p "$LIBS_DIR"

copy_base_files

echo ...copying template files
copy_files templates/Xcode4_templates/ "$DST_DIR"

echo done!
}

# copy Xcode4 templates
copy_xcode4_project_templates

# copy Xcode3 templates
copy_project_templates
copy_file_templates

Original file line number Diff line number Diff line change
Expand Up @@ -283,22 +283,6 @@
<key>Path</key>
<string>libs/cocos2d/CCCamera.m</string>
</dict>
<key>libs/cocos2d/CCCompatibility.h</key>
<dict>
<key>Group</key>
<string>cocos2d</string>
<key>Path</key>
<string>libs/cocos2d/CCCompatibility.h</string>
<key>TargetIndices</key>
<array/>
</dict>
<key>libs/cocos2d/CCCompatibility.m</key>
<dict>
<key>Group</key>
<string>cocos2d</string>
<key>Path</key>
<string>libs/cocos2d/CCCompatibility.m</string>
</dict>
<key>libs/cocos2d/ccConfig.h</key>
<dict>
<key>Group</key>
Expand Down Expand Up @@ -758,22 +742,6 @@
<key>Path</key>
<string>libs/cocos2d/CCSpriteFrameCache.m</string>
</dict>
<key>libs/cocos2d/CCSpriteSheet.h</key>
<dict>
<key>Group</key>
<string>cocos2d</string>
<key>Path</key>
<string>libs/cocos2d/CCSpriteSheet.h</string>
<key>TargetIndices</key>
<array/>
</dict>
<key>libs/cocos2d/CCSpriteSheet.m</key>
<dict>
<key>Group</key>
<string>cocos2d</string>
<key>Path</key>
<string>libs/cocos2d/CCSpriteSheet.m</string>
</dict>
<key>libs/cocos2d/CCTexture2D.h</key>
<dict>
<key>Group</key>
Expand Down Expand Up @@ -1577,13 +1545,6 @@
<key>Path</key>
<string>libs/FontLabel/ZFont.m</string>
</dict>
<key>libs/README</key>
<dict>
<key>Group</key>
<string>Unknown Group</string>
<key>Path</key>
<string>libs/README</string>
</dict>
<key>libs/TouchJSON/CDataScanner.h</key>
<dict>
<key>Group</key>
Expand Down Expand Up @@ -1749,8 +1710,6 @@
<string>libs/cocos2d/CCBlockSupport.m</string>
<string>libs/cocos2d/CCCamera.h</string>
<string>libs/cocos2d/CCCamera.m</string>
<string>libs/cocos2d/CCCompatibility.h</string>
<string>libs/cocos2d/CCCompatibility.m</string>
<string>libs/cocos2d/ccConfig.h</string>
<string>libs/cocos2d/CCConfiguration.h</string>
<string>libs/cocos2d/CCConfiguration.m</string>
Expand Down Expand Up @@ -1808,8 +1767,6 @@
<string>libs/cocos2d/CCSpriteFrame.m</string>
<string>libs/cocos2d/CCSpriteFrameCache.h</string>
<string>libs/cocos2d/CCSpriteFrameCache.m</string>
<string>libs/cocos2d/CCSpriteSheet.h</string>
<string>libs/cocos2d/CCSpriteSheet.m</string>
<string>libs/cocos2d/CCTexture2D.h</string>
<string>libs/cocos2d/CCTexture2D.m</string>
<string>libs/cocos2d/CCTextureAtlas.h</string>
Expand Down Expand Up @@ -1909,7 +1866,6 @@
<string>libs/FontLabel/ZAttributedStringPrivate.h</string>
<string>libs/FontLabel/ZFont.h</string>
<string>libs/FontLabel/ZFont.m</string>
<string>libs/README</string>
<string>libs/TouchJSON/CDataScanner.h</string>
<string>libs/TouchJSON/CDataScanner.m</string>
<string>libs/TouchJSON/Extensions/CDataScanner_Extensions.h</string>
Expand Down

0 comments on commit 1585df7

Please sign in to comment.