getversion()
{
- gv=`grep "^gameversion " "$1/defaultXonotic.cfg" | awk '{ print $2 }'`
+ gv=`grep "^gameversion " "$1/xonotic-common.cfg" | awk '{ print $2 }'`
major=$(($gv / 10000))
minor=$((($gv / 100) - ($major * 100)))
patch=$(($gv - ($major * 10000) - ($minor * 100)))
# - .ssh/config must be configured so the following
# host names are reachable and have a compile
# infrastructure set up:
- # - xonotic-build-linux32 (with gcc on x86)
# - xonotic-build-linux64 (with gcc on x86_64)
# - xonotic-build-win32 (with i586-mingw32msvc-g++)
# - xonotic-build-win64 (with amd64-mingw32msvc-g++
release_common
good=true
verbose "$SELF" release-getbinary Xonotic/xonotic-x86.exe || good=false
- verbose "$SELF" release-getbinary Xonotic/xonotic-x86-wgl.exe || good=false
verbose "$SELF" release-getbinary Xonotic/xonotic-x86-dedicated.exe || good=false
$good
;;
release_common
good=true
verbose "$SELF" release-getbinary Xonotic/xonotic.exe || good=false
- verbose "$SELF" release-getbinary Xonotic/xonotic-wgl.exe || good=false
verbose "$SELF" release-getbinary Xonotic/xonotic-dedicated.exe || good=false
$good
;;
verbose "$SELF" release-getbinary Xonotic/xonotic-osx-dedicated || good=false
$good
;;
- release-engine-linux32)
- release_common
- good=true
- verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-sdl || good=false
- verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-glx || good=false
- verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-dedicated || good=false
- $good
- ;;
release-engine-linux64)
release_common
good=true
release_common
# TODO report failures here.
good=false
- verbose "$SELF" release-engine-linux32 && good=true
verbose "$SELF" release-engine-linux64 && good=true
verbose "$SELF" release-engine-win32 && good=true
verbose "$SELF" release-engine-win64 && good=true
s/^set g_xonoticversion [^ ]* /set g_xonoticversion $versionstr /;
s/^gameversion_min [0-9]*/gameversion_min 0/;
s/^gameversion_max [0-9]*/gameversion_max 9999/;
- " < defaultXonotic.cfg > defaultXonotic.cfg.new
+ " < xonotic-common.cfg > xonotic-common.cfg.new
else
# >= 1.0
verbose sed "
s/^set g_xonoticversion [^ ]* /set g_xonoticversion $versionstr /;
s/^gameversion_min [0-9]*/gameversion_min $(( ($gv / 100) * 100 - 100 ))/;
s/^gameversion_max [0-9]*/gameversion_max $(( ($gv / 100) * 100 + 199 ))/;
- " < defaultXonotic.cfg > defaultXonotic.cfg.new
+ " < xonotic-common.cfg > xonotic-common.cfg.new
fi
- mv defaultXonotic.cfg.new defaultXonotic.cfg
+ mv xonotic-common.cfg.new xonotic-common.cfg
case "$RELEASETYPE" in
release)
- echo "" >> defaultXonotic.cfg
- echo "// nicer menu" >> defaultXonotic.cfg
- echo "set menu_watermark \"\"" >> defaultXonotic.cfg
+ echo "" >> xonotic-common.cfg
+ echo "// nicer menu" >> xonotic-common.cfg
+ echo "set menu_watermark \"\"" >> xonotic-common.cfg
;;
esac
(
verbose "$SELF" release-buildpk3s data/xonotic-data.pk3dir low '-low' normaldds '' normal '-high'
verbose "$SELF" release-buildpk3s data/xonotic-maps.pk3dir low '-low' normaldds '' mapping '-mapping' normal '-high'
verbose "$SELF" release-buildpk3s data/xonotic-music.pk3dir raw '' low '-low'
- verbose "$SELF" release-buildpk3s data/xonotic-nexcompat.pk3dir normaldds ''
+ verbose "$SELF" release-buildpk3s data/xonotic-nexcompat.pk3dir low '-low' normaldds '' normal '-high'
;;
release-pack-needsx11)
release_common
verbose mkzip0 Xonotic-$stamp-low$suffix.zip \
Xonotic/data/xonotic-$pk3stamp-data-low.pk3 \
Xonotic/data/xonotic-$pk3stamp-maps-low.pk3 \
- Xonotic/data/xonotic-$pk3stamp-music-low.pk3
+ Xonotic/data/xonotic-$pk3stamp-music-low.pk3 \
+ Xonotic/data/xonotic-$pk3stamp-nexcompat-low.pk3
verbose mv Xonotic-$stamp-common$suffix.zip Xonotic-$stamp-high$suffix.zip
verbose mkzip0 Xonotic-$stamp-high$suffix.zip \
Xonotic/data/xonotic-$pk3stamp-data-high.pk3 \
Xonotic/data/xonotic-$pk3stamp-maps-high.pk3 \
- Xonotic/data/xonotic-$pk3stamp-music.pk3
+ Xonotic/data/xonotic-$pk3stamp-music.pk3 \
+ Xonotic/data/xonotic-$pk3stamp-nexcompat-high.pk3
# let's pass crypto import laws of some nasty countries
find Xonotic -name \*d0_rijndael\*.so -o -name \*d0_rijndael\*.dylib -o -name \*d0_rijndael\*.dll -o -name \*d0_rijndael\*.c -delete
done