1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-04 15:02:20 -05:00
k-9/tools/build-beta
Jesse Vincent 0118f64f81 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
2011-03-16 17:59:25 -04:00

17 lines
839 B
Plaintext

BETA_PACKAGE=com.fsck.k9beta
BETA_PATH=com/fsck/k9beta
BETA_PROJ_NAME="K9 Beta"
perl -pi -e"s|\@string/app_name|\@string/beta_app_name|g" AndroidManifest.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 $@
mv src/$BETA_PATH src/com/fsck/k9
perl -pi -e"s|$BETA_PACKAGE|com.fsck.k9|g" AndroidManifest.xml
perl -pi -e"s|$BETA_PATH/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|$BETA_PROJ_NAME|K9|g" build.xml
perl -pi -e"s|\@string/beta_app_name|\@string/app_name|g" AndroidManifest.xml