Compiling Zandronum on Linux: Difference between revisions
→Installation
Line 284: | Line 284: | ||
cd ~/zandronum_build/zandronum && | cd ~/zandronum_build/zandronum && | ||
e=buildclient && i=buildserver && | e=buildclient && i=buildserver && | ||
r=src/svnrevision.h && if [ -f "$r" ] && [ "$(hg status $r)" != "? $r" ]; then r=$r; else | |||
[ "$(hg status | r=src/gitinfo.h; fi && h="$(sed -n 's/.*#define HG_REVISION_HASH_STRING "\(.*\)".*/\1/p' $r)" && | ||
r= | t="$(hg id -tr $h)" && d='' && if [ -z "$(hg log -r $h -k 'BUILD_ID_STR to release')" ]; then | ||
h="$(sed -n 's/.*#define HG_REVISION_HASH_STRING "\(.*\)".*/\1/p' $r)" && | |||
t="$(hg id -tr $h)" && | |||
d='' && if [ -z "$(hg log -r $h -k 'BUILD_ID_STR to release')" ]; then | |||
if [ "$t" = tip ] || [ -z "$t" ]; then d=-alpha; fi; fi && | if [ "$t" = tip ] || [ -z "$t" ]; then d=-alpha; fi; fi && | ||
x="$e" && y="$e/zandronum.pk3" && z="$i/zandronum.pk3" && | x="$e" && y="$e/zandronum.pk3" && z="$i/zandronum.pk3" && | ||
Line 303: | Line 300: | ||
<pre> | <pre> | ||
cd ~/zandronum_build/zandronum && | cd ~/zandronum_build/zandronum && | ||
r=src/svnrevision.h && if [ -f "$r" ] && [ "$(hg status $r)" != "? $r" ]; then r=$r; else | |||
[ "$(hg status | r=src/gitinfo.h; fi && h="$(sed -n 's/.*#define HG_REVISION_HASH_STRING "\(.*\)".*/\1/p' $r)" && | ||
r= | t="$(hg id -tr $h)" && d='' && if [ -z "$(hg log -r $h -k 'BUILD_ID_STR to release')" ]; then | ||
h="$(sed -n 's/.*#define HG_REVISION_HASH_STRING "\(.*\)".*/\1/p' $r)" && | |||
t="$(hg id -tr $h)" && | |||
d='' && if [ -z "$(hg log -r $h -k 'BUILD_ID_STR to release')" ]; then | |||
if [ "$t" = tip ] || [ -z "$t" ]; then d=-alpha; fi; fi && | if [ "$t" = tip ] || [ -z "$t" ]; then d=-alpha; fi; fi && | ||
printf %s "\ | printf %s "\ |