Created
June 15, 2012 18:09
-
-
Save ncalexan/2937919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MC=~/Mozilla/mozilla-inbound | |
# MC=~/Mozilla/mozilla-central | |
AS=~/Mozilla/android-sync | |
HG_PATCH_NAME=code-drop | |
pushd $MC | |
# hg qpop --all | |
# hg pull -u | |
# pop patch if it is last thing pushed | |
hg qapplied | tail -n 1 | grep $HG_PATCH_NAME && hg qpop | |
# delete patch if it exists | |
hg qseries | grep $HG_PATCH_NAME && hg qdelete $HG_PATCH_NAME | |
# hg qpush --all | |
hg qnew -m "Android Sync code drop." $HG_PATCH_NAME | |
pushd $AS | |
./fennec-code-drop.sh $MC $@ | |
popd | |
# add any new files | |
hg add | |
# all additions and changes go into the code-drop patch | |
hg qrefresh | |
# rebuild, repackage | |
# make -sj16 -f client.mk && make -sj16 -C objdir-droid package | |
make -sj16 -C objdir-droid/mobile/android/base && make -sj16 -C objdir-droid package | |
# and replace on device | |
echo "adb install -r $MC/objdir-droid/dist/fennec*.apk" | |
adb install -r objdir-droid/dist/fennec*.apk | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment