Skip to content

Commit

Permalink
Fix gen-config
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn committed Nov 21, 2016
1 parent e759bf8 commit 41ba97d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions gen-config.sh
Expand Up @@ -2,17 +2,21 @@

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

case "$*" in
*test*) export PKG_TEST=true;;
esac
case "$*" in
*sign*) export CHECK_SIGNATURES=true;
esac
case "$*" in
*release*) export RELEASE=true;;
esac
case "$*" in
*gp*) export GP_VERSION=true;;
esac
_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
Expand Down

0 comments on commit 41ba97d

Please sign in to comment.