renaming create2 and templates2

This commit is contained in:
Anis Kadri 2012-06-07 20:10:14 -07:00
parent 447af8da6a
commit 3fd158ad6e
11 changed files with 4 additions and 4 deletions

View File

@ -93,8 +93,8 @@ $ANDROID_BIN create project --target $TARGET --path $PROJECT_PATH --package $PAC
# copy project template # copy project template
echo "Copying assets and resources ..." echo "Copying assets and resources ..."
cp -r $BUILD_PATH/bin/templates2/project/assets $PROJECT_PATH cp -r $BUILD_PATH/bin/templates/project/assets $PROJECT_PATH
cp -r $BUILD_PATH/bin/templates2/project/res $PROJECT_PATH cp -r $BUILD_PATH/bin/templates/project/res $PROJECT_PATH
# copy cordova.js, cordova.jar and res/xml # copy cordova.js, cordova.jar and res/xml
echo "Setting up config and plugins list ..." echo "Setting up config and plugins list ..."
@ -106,10 +106,10 @@ cp $BUILD_PATH/framework/cordova-$VERSION.jar $PROJECT_PATH/libs/cordova-$VERSIO
# interpolate the activity name and package # interpolate the activity name and package
echo "Updating Activity and AndroidManifest ..." echo "Updating Activity and AndroidManifest ..."
cp $BUILD_PATH/bin/templates2/project/Activity.java $ACTIVITY_PATH cp $BUILD_PATH/bin/templates/project/Activity.java $ACTIVITY_PATH
sed -i '' -e "s/__ACTIVITY__/${ACTIVITY}/g" $ACTIVITY_PATH sed -i '' -e "s/__ACTIVITY__/${ACTIVITY}/g" $ACTIVITY_PATH
sed -i '' -e "s/__ID__/${PACKAGE}/g" $ACTIVITY_PATH sed -i '' -e "s/__ID__/${PACKAGE}/g" $ACTIVITY_PATH
cp $BUILD_PATH/bin/templates2/project/AndroidManifest.xml $MANIFEST_PATH cp $BUILD_PATH/bin/templates/project/AndroidManifest.xml $MANIFEST_PATH
sed -i '' -e "s/__ACTIVITY__/${ACTIVITY}/g" $MANIFEST_PATH sed -i '' -e "s/__ACTIVITY__/${ACTIVITY}/g" $MANIFEST_PATH
sed -i '' -e "s/__PACKAGE__/${PACKAGE}/g" $MANIFEST_PATH sed -i '' -e "s/__PACKAGE__/${PACKAGE}/g" $MANIFEST_PATH

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB