Fix gen-config & gen-version scripts

This commit is contained in:
a1batross 2016-09-13 21:33:57 +03:00
parent abf3e99896
commit 54166f6be4
3 changed files with 10 additions and 3 deletions

View file

@ -1,8 +1,8 @@
#!/bin/sh
ndk-build NDK_TOOLCHAIN_VERSION=4.8 NDK_DEBUG=0 V=0 XASH_SDL=0 -j 8 APP_CFLAGS="-w -Wl,--no-undefined" APP_LDFLAGS="-Wl,--no-undefined"
sh gen-config.sh release sign
sh gen-version.sh default-release
./gen-config.sh release sign
./gen-version.sh default-release
rm assets/extras.pak 2>/dev/null
python2 makepak.py xash-extras assets/extras.pak
ant release

View file

@ -1,13 +1,18 @@
#!/bin/sh
#!/bin/bash
git update-index --assume-unchanged src/in/celest/xash3d/XashConfig.java
PKG_TEST=false
if [[ $* =~ "test" ]] ; then export PKG_TEST=true; fi
CHECK_SIGNATURES=false
if [[ $* =~ "sign" ]] ; then export CHECK_SIGNATURES=true; fi
RELEASE=false
if [[ $* =~ "release" ]] ; then export RELEASE=true; fi
GP_VERSION=false
if [[ $* =~ "gp" ]] ; then export GP_VERSION=true; fi
_V="public static final boolean"
echo package in.celest.xash3d\; >src/in/celest/xash3d/XashConfig.java
echo public class XashConfig { >>src/in/celest/xash3d/XashConfig.java

View file

@ -1,3 +1,5 @@
#!/bin/bash
git update-index --assume-unchanged res/values/git-rev.xml
echo '<?xml version="1.0" encoding="utf-8"?>' > res/values/git-rev.xml
echo '<resources>' >> res/values/git-rev.xml