Jump to content

Compiling Zandronum on Linux: Difference between revisions

no 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 &&
if [ "$(hg log -r 'max(tagged())' --template '{rev}\n')" -ge \
u="$(hg log -l1 -k 'changed the version string to' \
"$(hg log -l1 -k 'BUILD_ID_STR to release' --template '{rev}\n')" ]; then
--template '{node|short}\n')"; echo "$u ZA_$(hg log -r $u --template '{desc}\n' |
hg identify -r 'max(tagged())'; else u="$(hg log -l1 -k 'BUILD_ID_STR to release' \
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')"; fi
</pre>
</pre>


Line 180: Line 178:
<pre>
<pre>
cd ~/zandronum_build/zandronum &&
cd ~/zandronum_build/zandronum &&
if [ "$(hg log -r 'max(tagged())' --template '{rev}\n')" -ge \
hg update -c $(hg log -l1 -k 'changed the version string to' --template '{node}\n')
"$(hg log -l1 -k 'BUILD_ID_STR to release' --template '{rev}\n')" ]; then
hg update -cr 'max(tagged())'; else hg update -c $(hg log -l1 -k \
'BUILD_ID_STR to release' --template '{node}\n'); fi
</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 &&
20

edits