I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 52a60b37 authored by zzz's avatar zzz
Browse files

handle core versions without the 3rd digit

parent adb5c56f
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ CORE=`grep 'public final static String VERSION' $I2PBASE/core/java/src/net/i2p/C ...@@ -14,6 +14,7 @@ CORE=`grep 'public final static String VERSION' $I2PBASE/core/java/src/net/i2p/C
MAJOR=`echo $CORE | cut -d '.' -f 1` MAJOR=`echo $CORE | cut -d '.' -f 1`
MINOR=`echo $CORE | cut -d '.' -f 2` MINOR=`echo $CORE | cut -d '.' -f 2`
RELEASE=`echo $CORE | cut -d '.' -f 3` RELEASE=`echo $CORE | cut -d '.' -f 3`
RELEASE=${RELEASE:-0}
ROUTERBUILD=$((`grep 'public final static long BUILD' $I2PBASE/router/java/src/net/i2p/router/RouterVersion.java | \ ROUTERBUILD=$((`grep 'public final static long BUILD' $I2PBASE/router/java/src/net/i2p/router/RouterVersion.java | \
cut -d '=' -f 2 | \ cut -d '=' -f 2 | \
...@@ -26,7 +27,7 @@ SDK=`grep 'android:minSdkVersion' $MANIFEST | \ ...@@ -26,7 +27,7 @@ SDK=`grep 'android:minSdkVersion' $MANIFEST | \
cut -d '"' -f 2` cut -d '"' -f 2`
# don't let build number get too long # don't let build number get too long
VERSIONSTRING="${CORE}-${ROUTERBUILD}_b$(($ANDROIDBUILD % 512))-API$SDK" VERSIONSTRING="${MAJOR}.${MINOR}.${RELEASE}-${ROUTERBUILD}_b$(($ANDROIDBUILD % 512))-API$SDK"
# #
# Android version code is an integer. # Android version code is an integer.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment