X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fall%2Frelease.subr;h=0b30a9bdc55fdc646d8860766abf82716425686e;hp=13cc2bccddd1155a207e467c219f3af3cae0b291;hb=cf8cc7e9f8ac5457b6165198999dd3fd9ba33941;hpb=2d25ba3ea003813c844a6c4a15a6455e0d1a27dd diff --git a/misc/tools/all/release.subr b/misc/tools/all/release.subr index 13cc2bcc..0b30a9bd 100644 --- a/misc/tools/all/release.subr +++ b/misc/tools/all/release.subr @@ -88,7 +88,7 @@ release_common() 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))) @@ -409,21 +409,21 @@ case "$cmd" in 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 (