aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-15 11:01:15 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-15 11:01:39 +0100
commit0429ec4cfde636dd8dda3d1a0dcf6e175c821196 (patch)
tree82328d7431a3eb14496989d1eee6721db066b462 /build
parenta740a48f62261073190a92e9b60256da13817923 (diff)
downloadminetest-0429ec4cfde636dd8dda3d1a0dcf6e175c821196.tar.gz
minetest-0429ec4cfde636dd8dda3d1a0dcf6e175c821196.tar.bz2
minetest-0429ec4cfde636dd8dda3d1a0dcf6e175c821196.zip
Android: update makefile and backport language fix from master
Diffstat (limited to 'build')
-rw-r--r--build/android/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/build/android/Makefile b/build/android/Makefile
index ef9376df3..f53f7f9f5 100644
--- a/build/android/Makefile
+++ b/build/android/Makefile
@@ -26,7 +26,8 @@ GAMES_TO_COPY = minetest_game
# Android Version code
# Increase for each build!
################################################################################
-ANDROID_VERSION_CODE = 10
+# Play Store actual version (15/03/15): 10
+ANDROID_VERSION_CODE = 11
################################################################################
# toolchain config for arm old processors
@@ -743,9 +744,13 @@ $(ROOT)/jni/src/android_version.h :
>> ${ROOT}/jni/src/android_version.h; \
export GITHASH=$$(git rev-parse --short=8 HEAD); \
if [ "x$$GITHASH" = "x" ] ; then \
- export GITHASH=gUnknown; \
+ export GITHASH=""; \
fi; \
- echo "#define CMAKE_VERSION_GITHASH \"$$GITHASH\"" \
+ export GITTAG=$$(git describe --abbrev=0 --tags); \
+ if [ "x$$GITTAG" = "x" ] ; then \
+ export GITTAG=""; \
+ fi; \
+ echo "#define CMAKE_VERSION_GITHASH \"$$GITTAG-$$GITHASH-Android\"" \
>> ${ROOT}/jni/src/android_version.h; \
echo "#define CMAKE_VERSION_STRING STR(VERSION_MAJOR)\".\"STR(VERSION_MINOR)\
\".\"STR(VERSION_PATCH)" \