1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

VERSION => 2.2 beta

This commit is contained in:
Nikolay Pultsin 2014-10-11 17:22:41 +02:00
parent 1eb0fb96fd
commit 237e3b191e
3 changed files with 16 additions and 10 deletions

View file

@ -2,8 +2,8 @@
<manifest <manifest
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
package="org.geometerplus.zlibrary.ui.android" package="org.geometerplus.zlibrary.ui.android"
android:versionCode="2010710" android:versionCode="2015010"
android:versionName="2.1.7" android:versionName="2.2 beta"
android:installLocation="auto" android:installLocation="auto"
> >
<uses-sdk <uses-sdk

View file

@ -1 +1 @@
2.1.7 2.2 beta

View file

@ -26,10 +26,12 @@ updateVersion() {
;; ;;
esac esac
major=`echo $version | cut -d . -f 1` fixed=`echo $version | sed "s/ beta.*//"`
minor=`echo $version | cut -d . -f 2`
micro=`echo $version | cut -d . -f 3` major=`echo $fixed | cut -d . -f 1`
local=`echo $version | cut -d . -f 4` minor=`echo $fixed | cut -d . -f 2`
micro=`echo $fixed | cut -d . -f 3`
local=`echo $fixed | cut -d . -f 4`
if [ "$branch" == "nook" ]; then if [ "$branch" == "nook" ]; then
version=$version-nst version=$version-nst
elif [ "$branch" == "kindle" ]; then elif [ "$branch" == "kindle" ]; then
@ -38,6 +40,10 @@ updateVersion() {
if [ "$micro" == "" ]; then if [ "$micro" == "" ]; then
micro=0 micro=0
fi
if [ "$version" != "$fixed" ]; then
minor=$(($minor - 1))
micro=$(($micro + 50))
fi fi
if [ "$local" == "" ]; then if [ "$local" == "" ]; then
local=0 local=0