Compiling Zandronum on Linux: Difference between revisions
Compiling Zandronum on Linux (view source)
Revision as of 01:34, 21 December 2020
, 21 December 2020no edit summary
m (Link changed to osdn) |
No edit summary |
||
Line 117: | Line 117: | ||
<pre> | <pre> | ||
cd ~/zandronum_build && | cd ~/zandronum_build && | ||
hg clone https://hg.osdn.net/view/zandronum/zandronum-stable && | hg clone https://hg.osdn.net/view/zandronum/zandronum-stable zandronum && | ||
mkdir -pv zandronum/buildclient zandronum/buildserver | mkdir -pv zandronum/buildclient zandronum/buildserver | ||
</pre> | </pre> | ||
Line 170: | Line 170: | ||
<pre> | <pre> | ||
cd ~/zandronum_build/zandronum && | cd ~/zandronum_build/zandronum && | ||
u="$(hg log -l1 -k 'changed the version string to' \ | |||
--template '{node|short}\n')"; echo "$u ZA_$(hg log -r $u --template '{desc}\n' | | |||
sed -n 's/.*changed the version string to \(.*\)/\1/p')" | |||
--template '{node|short}\n')"; echo "$u $(hg log -r $u --template '{desc}\n' | | |||
sed -n 's/.*changed the version string to \(.*\)/\1/p')" | |||
</pre> | </pre> | ||
Line 180: | Line 178: | ||
<pre> | <pre> | ||
cd ~/zandronum_build/zandronum && | cd ~/zandronum_build/zandronum && | ||
hg update -c $(hg log -l1 -k 'changed the version string to' --template '{node}\n') | |||
' | |||
</pre> | </pre> | ||
and [[#Compiling|compile]]. | and [[#Compiling|compile]]. | ||
Line 323: | Line 318: | ||
if [ "$t" = tip ] || [ -z "$t" ]; then d=-alpha; fi; fi && | if [ "$t" = tip ] || [ -z "$t" ]; then d=-alpha; fi; fi && | ||
printf %s "\ | printf %s "\ | ||
#!/bin/sh | #! /bin/sh | ||
export LD_LIBRARY_PATH=/usr/games/zandronum$d | export LD_LIBRARY_PATH=/usr/games/zandronum$d | ||
exec /usr/games/zandronum$d/zandronum \"\$@\" | exec /usr/games/zandronum$d/zandronum \"\$@\" | ||
" > zandronum$d.sh && | " > zandronum$d.sh && | ||
printf %s "\ | printf %s "\ | ||
#!/bin/sh | #! /bin/sh | ||
exec /usr/games/zandronum$d/zandronum-server \"\$@\" | exec /usr/games/zandronum$d/zandronum-server \"\$@\" | ||
" > zandronum-server$d.sh && | " > zandronum-server$d.sh && |