edit the config to adjust the version number
authorRudolf Polzer <divVerent@alientrap.org>
Thu, 5 Aug 2010 18:12:49 +0000 (20:12 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Thu, 5 Aug 2010 18:12:49 +0000 (20:12 +0200)
all

diff --git a/all b/all
index 6c5018d8148ee86d1f1a4f2e9315102e09fc2d0b..a826350126915ae21b1563782c57660e69522570 100755 (executable)
--- a/all
+++ b/all
@@ -1053,6 +1053,18 @@ case "$cmd" in
                                fi
                        done
                fi
+               if [ -f "defaultXonotic.cfg" ]; then
+                       gv=`grep "^gameversion " "defaultXonotic.cfg" | awk '{ print $2 }'`
+                       major=$(($gv / 10000))
+                       minor=$(($gv / 100 - $major * 100))
+                       patch=$(($gv - $major * 10000 - $minor * 100))
+                       sed -i "
+                               s/^set g_xonoticversion [^ ]* /set g_xonoticversion $major.$minor.$patch /;
+                               s/^gameversion_min [0-9]*/gameversion_min $(( ($gv / 100) * 100 - 100 ))/;
+                               s/^gameversion_max [0-9]*/gameversion_max $(( ($gv / 100) * 100 + 199 ))/;
+                       " defaultXonotic.cfg
+                       echo "r_texture_dds_load 1" >> quake.rc
+               fi
                "$SELF" release-buildpk3-transform-$transform "Xonotic/temp"
                cd Xonotic/temp
                zip -9r "../../$dst" . ########### 7za a -tzip -mx=9 "../../$dst" .