]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
embed versionbuilder into the release build procedure
authorRudolf Polzer <divverent@alientrap.org>
Tue, 14 Sep 2010 03:59:21 +0000 (05:59 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 14 Sep 2010 03:59:21 +0000 (05:59 +0200)
all

diff --git a/all b/all
index a3d94a06f35e8b86be7168eba255b03fc7aaa43b..cc3dd09d7a8a55e37adc9cea3c44c64a902f6ac2 100755 (executable)
--- a/all
+++ b/all
@@ -1172,16 +1172,29 @@ case "$cmd" in
                        major=$(($gv / 10000))
                        minor=$(($gv / 100 - $major * 100))
                        patch=$(($gv - $major * 10000 - $minor * 100))
+                       versionstr="$major.$minor.$patch"
+                       case "$RELEASETYPE" in
+                               beta)
+                                       versionstr="$versionstr""beta"
+                                       ;;
+                       esac
                        verbose sed -i "
-                               s/^set g_xonoticversion [^ ]* /set g_xonoticversion $major.$minor.$patch /;
+                               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
+                       (
+                               verbose cd gfx/menu/luminos
+                               verbose cp "$d0"/mediasource/gfx/menu/luminos_versionbuilder/background_l2.svg .
+                               verbose "$d0"/mediasource/gfx/menu/luminos_versionbuilder/versionbuilder "$versionstr"
+                               verbose rm background_l2.svg
+                       )
                fi
                if [ x"$src" = x"data/xonotic-maps.pk3dir" ]; then
                        for X in ../../data/*-????????????????????????????????????????-????????????????????????????????????????.pk3; do
                                if [ -f "$X" ]; then
                                        verbose unzip "$X"
+                                       verbose rm -f maps/*.log maps/*.irc maps/*.lin
                                fi
                        done
                fi