From 546b33c9366b0ea395d288ba07d007cd2ceff55f Mon Sep 17 00:00:00 2001 From: nisc Date: Mon, 31 Oct 2011 14:15:05 +0100 Subject: [PATCH] Fixes to make example project build and compile On Ubuntu 11.04, that is. --- bin/templates/project/phonegap/create | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/templates/project/phonegap/create b/bin/templates/project/phonegap/create index 553a5b55..6e00e589 100755 --- a/bin/templates/project/phonegap/create +++ b/bin/templates/project/phonegap/create @@ -17,7 +17,7 @@ MANIFEST_PATH=./AndroidManifest.xml android create project --target $TARGET --path . --package $PACKAGE --activity $ACTIVITY # copy all the phonegap scripts etc in there -cp -R ./phonegap/templates/project/ . +cp -R ./phonegap/templates/project/* . # copy in phonegap.js cp ./.phonegap/android/phonegap-$VERSION.js ./assets/www @@ -29,8 +29,8 @@ cp ./.phonegap/android/phonegap-$VERSION.jar ./libs cat ./phonegap/templates/Activity.java > $ACTIVITY_PATH # interpolate the acivity name and package -find "$ACTIVITY_PATH" | xargs grep '__ACTIVITY__' -sl | xargs -L1 sed -i "" "s/__ACTIVITY__/${ACTIVITY}/g" -find "$ACTIVITY_PATH" | xargs grep '__ID__' -sl | xargs -L1 sed -i "" "s/__ID__/${PACKAGE}/g" +find "$ACTIVITY_PATH" | xargs grep '__ACTIVITY__' -sl | xargs -L1 sed -i "s/__ACTIVITY__/${ACTIVITY}/g" +find "$ACTIVITY_PATH" | xargs grep '__ID__' -sl | xargs -L1 sed -i "s/__ID__/${PACKAGE}/g" -find "$MANIFEST_PATH" | xargs grep '__ACTIVITY__' -sl | xargs -L1 sed -i "" "s/__ACTIVITY__/${ACTIVITY}/g" -find "$MANIFEST_PATH" | xargs grep '__PACKAGE__' -sl | xargs -L1 sed -i "" "s/__PACKAGE__/${PACKAGE}/g" +find "$MANIFEST_PATH" | xargs grep '__ACTIVITY__' -sl | xargs -L1 sed -i "s/__ACTIVITY__/${ACTIVITY}/g" +find "$MANIFEST_PATH" | xargs grep '__PACKAGE__' -sl | xargs -L1 sed -i "s/__PACKAGE__/${PACKAGE}/g"