1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00
This commit is contained in:
Nikolay Pultsin 2014-01-31 12:51:14 +00:00
parent b8146aa3ec
commit cf33d3c13b
4 changed files with 11 additions and 4 deletions

View file

@ -47,6 +47,7 @@ updateVersion() {
major=`echo $version | cut -d . -f 1`
minor=`echo $version | cut -d . -f 2`
micro=`echo $version | cut -d . -f 3`
local=`echo $version | cut -d . -f 4`
if [ "$branch" == "nook" ]; then
version=$version-nst
elif [ "$branch" == "kindle" ]; then
@ -57,7 +58,10 @@ updateVersion() {
if [ "$micro" == "" ]; then
micro=0
fi
intversion=$((100000*$major+1000*$minor+10*$micro+$variant))
if [ "$local" == "" ]; then
local=0
fi
intversion=$((1000000*$major+10000*$minor+100*$micro+10*$variant+$local))
sed "s/@INTVERSION@/$intversion/" AndroidManifest.xml.pattern | sed "s/@VERSION@/$version/" > AndroidManifest.xml
}