Skip to content

Commit

Permalink
installer template: more verbose output so users know what it is bein…
Browse files Browse the repository at this point in the history
…g installed
  • Loading branch information
ricardoquesada committed Apr 15, 2011
1 parent 5598df7 commit 6bd8f76
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions install-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ print_template_banner(){
}

# copies project-based templates
copy_project_templates(){
copy_xcode3_project_templates(){
if [[ $user_dir ]]; then
TEMPLATE_DIR="${BASE_TEMPLATE_USER_DIR}/Project Templates/${COCOS2D_VER}/"
else
Expand All @@ -151,7 +151,7 @@ copy_project_templates(){
mkdir -p "$TEMPLATE_DIR"
fi

print_template_banner "Installing cocos2d iOS template"
print_template_banner "Installing Xcode 3 cocos2d iOS template"

DST_DIR="$TEMPLATE_DIR""cocos2d Application/"
LIBS_DIR="$DST_DIR"libs
Expand All @@ -165,7 +165,7 @@ copy_project_templates(){

echo done!

print_template_banner "Installing cocos2d iOS + box2d template"
print_template_banner "Installing Xcode 3 cocos2d iOS + box2d template"

DST_DIR="$TEMPLATE_DIR""cocos2d Box2d Application/"
LIBS_DIR="$DST_DIR"libs
Expand All @@ -183,7 +183,7 @@ copy_project_templates(){
echo done!


print_template_banner "Installing cocos2d iOS + chipmunk template"
print_template_banner "Installing Xcode 3 cocos2d iOS + chipmunk template"

DST_DIR="$TEMPLATE_DIR""cocos2d Chipmunk Application/"
LIBS_DIR="$DST_DIR"libs
Expand All @@ -200,7 +200,7 @@ copy_project_templates(){

echo done!

print_template_banner "Installing cocos2d Mac template"
print_template_banner "Installing Xcode 3 cocos2d Mac template"

DST_DIR="$TEMPLATE_DIR""cocos2d Application - Mac/"
LIBS_DIR="$DST_DIR"libs
Expand All @@ -215,7 +215,7 @@ copy_project_templates(){
echo done!
}

copy_file_templates(){
copy_xcode3_file_templates(){
if [[ $user_dir ]]; then
TEMPLATE_DIR="${BASE_TEMPLATE_USER_DIR}/File Templates/${COCOS2D_VER}/"
else
Expand All @@ -233,7 +233,7 @@ copy_file_templates(){
mkdir -p "$TEMPLATE_DIR"
fi

print_template_banner "Installing CCNode file templates..."
print_template_banner "Installing Xcode 3 CCNode file templates..."

copy_files "templates/Xcode3_templates/file-templates/CCNode class" "$DST_DIR"

Expand Down Expand Up @@ -303,7 +303,7 @@ copy_xcode4_project_templates(){
DST_DIR="$HOME/Library/Developer/Xcode/Templates/File Templates/cocos2d/"
OLD_DIR="$HOME/Library/Developer/Xcode/Templates/cocos2d/"

print_template_banner "Installing CCNode file templates..."
print_template_banner "Installing Xcode 4 CCNode file templates..."

check_dst_dir

Expand All @@ -316,6 +316,6 @@ copy_xcode4_project_templates(){
copy_xcode4_project_templates

# copy Xcode3 templates
copy_project_templates
copy_file_templates
copy_xcode3_project_templates
copy_xcode3_file_templates

0 comments on commit 6bd8f76

Please sign in to comment.