Skip to content

Commit

Permalink
Template: installer can be run from any directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed Mar 15, 2011
1 parent d86feac commit fd4c543
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ People/companies who were/are contributing code to cocos2d for iPhone (alphabeti
oapcity + color works with premultiplied textures. patch.
Director: fixed startup flicker
Fixed the artifact in textures atlas with no border.
* cjlesh:
* cjlesh (cjl):
RotateTo action rotates to shortest angle patch
Templates: Installer can be run from any directory. patch.
* Clinth Harris:
patches for Doc generator script
* cmkilger:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version 1.0-rc - XX-Apr-2011
. [NEW] Templates: Added Xcode4 templates
. [NEW] Tempaltes: Possibility to run the installer from any directory
. [FIX] All: Removed many deprecated methods and classes that were scheduled for removal on v1.0
. [3RD] FontLabel: Fixes issues with wrapping and apostraphes and hyphens (issue #1124)

Expand Down
6 changes: 5 additions & 1 deletion install-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ echo 'cocos2d-iphone template installer'
COCOS2D_VER='cocos2d 1.0.0'
BASE_TEMPLATE_DIR="/Library/Application Support/Developer/Shared/Xcode"
BASE_TEMPLATE_USER_DIR="$HOME/Library/Application Support/Developer/Shared/Xcode"
SCRIPT_DIR=$(dirname $0)

force=
user_dir=
Expand Down Expand Up @@ -51,7 +52,10 @@ fi


copy_files(){
rsync -r --exclude=.svn "$1" "$2"
SRC_DIR="${SCRIPT_DIR}/${1}"
echo ${SRC_DIR}
echo ${2}
rsync -r --exclude=.svn "$SRC_DIR" "$2"
}

check_dst_dir(){
Expand Down

0 comments on commit fd4c543

Please sign in to comment.