Compiling Zandronum on Linux: Difference between revisions
Compiling Zandronum on Linux (view source)
Revision as of 09:25, 18 December 2021
, 18 December 2021→Installation
DrinkyBird (talk | contribs) (Removed the FMOD warning) |
|||
Line 282: | Line 282: | ||
r=src/svnrevision.h && if [ -f "$r" ] && [ "$(hg status $r)" != "? $r" ]; then r=$r; else | r=src/svnrevision.h && if [ -f "$r" ] && [ "$(hg status $r)" != "? $r" ]; then r=$r; else | ||
r=src/gitinfo.h; fi && h="$(sed -n 's/.*#define HG_REVISION_HASH_STRING "\(.*\)".*/\1/p' $r)" && | r=src/gitinfo.h; fi && 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 ' | t="$(hg id -tr $h)" && d='' && if [ -z "$(hg log -r $h -k 'changed the version string to')" ]; 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 288: | Line 288: | ||
x="$i"; elif [ ! -f "$y" ] && [ -f "$z" ]; then x="$i"; fi && | x="$i"; elif [ ! -f "$y" ] && [ -f "$z" ]; then x="$i"; fi && | ||
o="$e/output_sdl/liboutput_sdl.so" && if [ -f "$o" ]; then l="$o \ | o="$e/output_sdl/liboutput_sdl.so" && if [ -f "$o" ]; then l="$o \ | ||
fmodapi44464linux/api/lib/libfmodex${a}-4.44.64.so"; else l=''; fi && | |||
sudo cp -v $e/zandronum $i/zandronum-server $x/zandronum.pk3 $x/skulltag_actors.pk3 $l \ | sudo cp -v $e/zandronum $i/zandronum-server $x/zandronum.pk3 $x/skulltag_actors.pk3 $l \ | ||
/usr/games/zandronum$d/ | /usr/games/zandronum$d/ | ||
Line 298: | Line 298: | ||
r=src/svnrevision.h && if [ -f "$r" ] && [ "$(hg status $r)" != "? $r" ]; then r=$r; else | r=src/svnrevision.h && if [ -f "$r" ] && [ "$(hg status $r)" != "? $r" ]; then r=$r; else | ||
r=src/gitinfo.h; fi && h="$(sed -n 's/.*#define HG_REVISION_HASH_STRING "\(.*\)".*/\1/p' $r)" && | r=src/gitinfo.h; fi && 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 ' | t="$(hg id -tr $h)" && d='' && if [ -z "$(hg log -r $h -k 'changed the version string to')" ]; 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 "\ |