BobStore/F-Droid/jenkins-build
Daniel Martí 06dd4c8dcb Move F-Droid project into subdir, keeping a root gradle project
Also improved .gitignore a tad
2014-12-09 15:36:07 +01:00

20 lines
521 B
Bash
Executable File

#!/bin/sh
#
# Jenkins uses this script to set up the ant build. Jenkins will then call
# ant itself once this script has completed.
set -e
set -x
# reset version code/name to current date
versionCodeDate=`date +%s`
versionNameDate=`date +%Y-%m-%d_%H.%M.%S`
sed -i \
-e "s,android:versionCode=\"[0-9][0-9]*\",android:versionCode=\"$versionCodeDate\"," \
-e "s,android:versionName=\"\([^\"][^\"]*\)\",android:versionName=\"\1.$versionNameDate\"," \
AndroidManifest.xml
. ~/.android/bashrc
./ant-prepare.sh