mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Fix error handling on inconsistent client ready message
Fix android makefile to provide a correct dummy githash if detection fails
This commit is contained in:
parent
7d72ac6a69
commit
d38f6ebb9b
2 changed files with 13 additions and 3 deletions
|
@ -691,7 +691,11 @@ $(ROOT)/jni/src/android_version.h :
|
|||
echo "#define VERSION_PATCH_ORIG $$(cat ${ROOT}/../../CMakeLists.txt | \
|
||||
grep ^set\(VERSION_PATCH\ | sed 's/)/ /' | awk '{print $$2;}')" \
|
||||
>> ${ROOT}/jni/src/android_version.h; \
|
||||
echo "#define CMAKE_VERSION_GITHASH \"$$(git rev-parse --short=8 HEAD)\"" \
|
||||
export GITHASH=$$(git rev-parse --short=8 HEAD); \
|
||||
if [ "x$$GITHASH" = "x" ] ; then \
|
||||
export GITHASH=gUnknown; \
|
||||
fi; \
|
||||
echo "#define CMAKE_VERSION_GITHASH \"$$GITHASH\"" \
|
||||
>> ${ROOT}/jni/src/android_version.h; \
|
||||
echo "#define CMAKE_VERSION_STRING STR(VERSION_MAJOR)\".\"STR(VERSION_MINOR)\
|
||||
\".\"STR(VERSION_PATCH)" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue