1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Restore tools/build-beta to its former glory. It can now build a "K9

beta with different keys" that can sit next to an installed K-9.

Run it as you would run ant

sh tools/build-beta debug
This commit is contained in:
Jesse Vincent 2011-03-16 17:59:25 -04:00
parent 330737c4c6
commit 0118f64f81

View File

@ -1,12 +1,16 @@
perl -pi -e's|\@string/app_name|\@string/beta_app_name|g' AndroidManifest.xml BETA_PACKAGE=com.fsck.k9beta
perl -pi -e's|com/fsck/k9/R.java|com/fsck/k9beta/R.java|g' build.xml BETA_PATH=com/fsck/k9beta
find src/com/fsck -type f |xargs -n 1 perl -pi -e's|com.\fsck\.k9|com.fsck.k9beta|g' BETA_PROJ_NAME="K9 Beta"
mv src/com/fsck/k9 src/com/fsck/k9beta perl -pi -e"s|\@string/app_name|\@string/beta_app_name|g" AndroidManifest.xml
perl -pi -e's|K9|K9-BETA|g' build.xml perl -pi -e"s|com/fsck/k9/R.java|$BETA_PATH/R.java|g" build.xml
find src/com/fsck res -type f |xargs -n 1 perl -pi -e"s/com.fsck.k9(?=\W)/$BETA_PACKAGE/g"
perl -pi -e"s|com.fsck.k9|$BETA_PACKAGE|g" AndroidManifest.xml
mv src/com/fsck/k9 src/$BETA_PATH
perl -pi -e"s|K9|$BETA_PROJ_NAME|g" build.xml
ant $@ ant $@
#mv src/com/fsck/k9beta src/com/fsck/k9 mv src/$BETA_PATH src/com/fsck/k9
#perl -pi -e's|K9-BETA|K9|g' build.xml perl -pi -e"s|$BETA_PACKAGE|com.fsck.k9|g" AndroidManifest.xml
#perl -pi -e's|com\.fsck\.k9beta|com.fsck.k9|g' build.xml AndroidManifest.xml src/com/fsck/k9/provider/AttachmentProvider.java perl -pi -e"s|$BETA_PATH/R.java|com/fsck.k9/R.java|g" build.xml
#perl -pi -e's|com/fsck/k9beta/R.java|com/fsck/k9/R.java|g' build.xml find src/com/fsck res -type f |xargs -n 1 perl -pi -e"s/$BETA_PACKAGE(?=\W)/com.fsck.k9/g"
#perl -pi -e's|\@string/beta_app_name|\@string/app_name|g' AndroidManifest.xml perl -pi -e"s|$BETA_PROJ_NAME|K9|g" build.xml
#find src/com/fsck -type f |xargs -n 1 perl -pi -e's|com.fsck.k9beta|com.fsck.k9|' perl -pi -e"s|\@string/beta_app_name|\@string/app_name|g" AndroidManifest.xml