fix socket fuckup, was: fauilure in protocoll
[adBlock.git] / bump.sh
blob553274aa6ad1fb7ff2f65ac4b9dbaaaa05bd7de6
1 #! /bin/sh
3 v=$1
4 vv=$(echo ${v} | sed -e 's:0\.::g' | tr -d .)
5 n=$(fgrep app_name res/values/strings.xml | cut -d\> -f2 | cut -d\< -f1 | tr -d \ )
7 sed -i -e "s/android:versionName=[^ >]*/android:versionName=\"${v}\"/" AndroidManifest.xml
8 sed -i -e "s/android:versionCode=[^ >]*/android:versionCode=\"${vv}\"/" AndroidManifest.xml
9 sed -i -e "s/app_version\">[^<]*/app_version\">${v}/" res/values/strings.xml
11 git diff
13 ant debug || exit
15 mv bin/*-debug.apk ~/public_html/h/flx/ 2> /dev/null
17 echo "enter for commit+tag"
18 read a
19 git commit -am "bump to v${v}"
20 git tag -a "v${v}" -m "${n}-${v}"