Skip to content

Commit

Permalink
fixed #982, copy resources as recursively (-r), and let sed works on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
walzer committed Mar 1, 2012
1 parent a8a82ec commit 2acd80b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/android/copy_files.sh
Expand Up @@ -51,7 +51,7 @@ copy_resouces(){

for file in $HELLOWORLD_ROOT/Resources/*
do
cp $file $APP_DIR/Resources
cp -rf $file $APP_DIR/Resources
done
}

Expand Down Expand Up @@ -103,7 +103,7 @@ modify_applicationdemo(){
CONTENT=$CONTENT'System.loadLibrary("lua");'
fi

sed -i "/cocosdenshion/ i\ $CONTENT" $APP_DIR/android/src/$PACKAGE_PATH_DIR/$APP_NAME.java
sed -i -e "s/System.loadLibrary(\"cocosdenshion\")\;/System.loadLibrary(\"cocosdenshion\")\;$CONTENT/" $APP_DIR/android/src/$PACKAGE_PATH_DIR/$APP_NAME.java
}

modify_layout(){
Expand Down

0 comments on commit 2acd80b

Please sign in to comment.