]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Change gameversion_min logic per xonotic-data.pk3dir!1034 and update xonotic-release...
authorbones_was_here <bones_was_here@xa.org.au>
Sat, 18 Jun 2022 14:43:18 +0000 (00:43 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Sat, 18 Jun 2022 14:46:22 +0000 (00:46 +1000)
misc/infrastructure/xonotic-release-build.cron
misc/tools/all/release.subr

index 5a5fd72c10f5afe75669cc16ae25c362de3648e8..479746ac6d24fc637d00e06cb42e84afb33f7cf9 100755 (executable)
@@ -39,7 +39,7 @@ fi
 
 set -ex
 
-test "$RELEASETYPE" = "autobuild" && ssh autobuild-release-uploader@beta.xonotic.org '
+test -z "$RELEASETYPEDIR" && ssh autobuild-release-uploader@beta.xonotic.org '
        set -e;
        s0=`date -d "now - 7 days - 12 hours" +%s`;
        s00=`date -d "now - 60 days - 12 hours" +%s`;
index be9320d4be48b738ed63473798dff7afa74dcb47..99ab788449502c910c9f6afc5e93089176261d25 100644 (file)
@@ -461,16 +461,18 @@ case "$cmd" in
                                # pre-1.0: compatible with any other pre-1.0
                                verbose sed "
                                        s/^set g_xonoticversion [^ ]* /set g_xonoticversion $versionstr /;
-                                       s/^gameversion_min [0-9]*/gameversion_min     0/;
                                        s/^gameversion_max [0-9]*/gameversion_max  9999/;
                                " < xonotic-common.cfg > xonotic-common.cfg.new
+                               # Following line was included in sed above, ref https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/1034
+                               # s/^gameversion_min [0-9]*/gameversion_min     0/;
                        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 ))/;
                                " < xonotic-common.cfg > xonotic-common.cfg.new
+                               # Following line was included in sed above, ref https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/1034
+                               # s/^gameversion_min [0-9]*/gameversion_min $(( ($gv / 100) * 100 - 100 ))/;
                        fi
                        mv xonotic-common.cfg.new xonotic-common.cfg
                        case "$RELEASETYPE" in