mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-23 16:18:50 -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:
parent
330737c4c6
commit
0118f64f81
@ -1,12 +1,16 @@
|
||||
perl -pi -e's|\@string/app_name|\@string/beta_app_name|g' AndroidManifest.xml
|
||||
perl -pi -e's|com/fsck/k9/R.java|com/fsck/k9beta/R.java|g' build.xml
|
||||
find src/com/fsck -type f |xargs -n 1 perl -pi -e's|com.\fsck\.k9|com.fsck.k9beta|g'
|
||||
mv src/com/fsck/k9 src/com/fsck/k9beta
|
||||
perl -pi -e's|K9|K9-BETA|g' build.xml
|
||||
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/com/fsck/k9beta src/com/fsck/k9
|
||||
#perl -pi -e's|K9-BETA|K9|g' build.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|com/fsck/k9beta/R.java|com/fsck/k9/R.java|g' build.xml
|
||||
#perl -pi -e's|\@string/beta_app_name|\@string/app_name|g' AndroidManifest.xml
|
||||
#find src/com/fsck -type f |xargs -n 1 perl -pi -e's|com.fsck.k9beta|com.fsck.k9|'
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user