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
15 mv bin
/*-debug.apk ~
/public_html
/h
/flx
/ 2> /dev
/null
17 echo "enter for commit+tag"
19 git commit
-am "bump to v${v}"
20 git tag
-a "v${v}" -m "${n}-${v}"