]> de.git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Fix demotc-race-record-extractor.sh not detecting CTF records master
authorterencehill <piuntn@gmail.com>
Thu, 5 Sep 2024 23:22:27 +0000 (01:22 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 5 Sep 2024 23:22:27 +0000 (01:22 +0200)
Bug introduced in !113

misc/infrastructure/xonotic-release-build.cron
misc/logos/org.xonotic.Xonotic.metainfo.xml [new file with mode: 0644]
misc/logos/xonotic.appdata.xml [deleted file]
misc/tools/all/release.subr
misc/tools/demotc-race-record-extractor.sh
misc/tools/tag-release.sh

index f9f16dacb3969b832132863cda013f883c1d39ae..9491caba6651d9c1532f403107d7f0179bcf7407 100755 (executable)
@@ -57,8 +57,7 @@ test -z "$RELEASETYPEDIR" && ssh autobuild-release-uploader@beta.xonotic.org '
                [ x"$d" != x"latest" ] || continue;
                w=`date -d $d +%w`;
                s=`date -d $d +%s`;
-               w=$(($w % 2));
-               if [ "$w" -ne 0 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
+               if [ "$w" -ne 0 -a "$w" -ne 6 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
                        rm -f "$X";
                fi;
        done
@@ -102,8 +101,11 @@ rsync -vaSHP Xonotic*.zip Xonotic*.sha512 autobuild-release-uploader@beta.xonoti
 if [ -z "$RELEASETYPEDIR" ]; then
        ssh autobuild-release-uploader@beta.xonotic.org sh ../../update-rsync.sh "$d"
 
-       # pipeline files, see: .gitlab-ci.yml in xonotic-data.pk3dir
+       # also upload pipeline files for .gitlab-ci.yml in xonotic-data.pk3dir
        cp data/stormkeep-????????????????????????????????????????-????????????????????????????????????????.pk3 stormkeep.pk3
+       cd data/xonotic-maps.pk3dir # need correct path inside pk3
+       7z a -tzip -mx=9 ../../stormkeep.pk3 maps/stormkeep.mapinfo maps/stormkeep.waypoints*
+       cd ~/xonotic-release-build
        PIPELINE_FILES="gmqcc/gmqcc Xonotic/xonotic-linux64-dedicated stormkeep.pk3"
        rsync -vSP $PIPELINE_FILES autobuild-release-uploader@beta.xonotic.org:../pipeline-bin/
        rm -f stormkeep.pk3
diff --git a/misc/logos/org.xonotic.Xonotic.metainfo.xml b/misc/logos/org.xonotic.Xonotic.metainfo.xml
new file mode 100644 (file)
index 0000000..1faf99c
--- /dev/null
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+  <id>org.xonotic.Xonotic</id>
+  <project_license>GPL-3.0</project_license>
+  <metadata_license>CC0-1.0</metadata_license>
+  <provides>
+    <binary>xonotic-sdl</binary>
+  </provides>
+  <launchable type="desktop-id">xonotic.desktop</launchable>
+  <name>Xonotic</name>
+  <developer_name>Team Xonotic</developer_name>
+  <summary>Multiplayer, deathmatch oriented first person shooter</summary>
+  <summary xml:lang="de">Deathmatch- und Mehrspieler-orientierter Ego-Shooter</summary>
+  <summary xml:lang="fr">Jeu de tir à la première personne multijoueur</summary>
+  <description>
+    <p>
+      Xonotic is a free and fast-paced first person shooter which combines
+      addictive, arena-style gameplay with rapid movement and a wide array of
+      weapons.
+    </p>
+    <p xml:lang="de">
+      Xonotic ist ein freier und schneller Ego-Shooter, der ein
+      Gameplay im Arenastil mit hektischen Manövern und einer großen Auswahl
+      an Waffen kombiniert.
+    </p>
+    <p xml:lang="fr">
+      Xonotic est un jeu de tir à la première personne gratuit, qui combine un
+      style de jeu en arène rapide et addictif avec une large sélection d'armes.
+    </p>
+    <p>
+      Xonotic is easy to learn, but hard to master! Besides thrilling action for
+      the casual player, the game also provides e-sport opportunities for those
+      interested in its competitive aspects.
+      From mapping contests and monthly quick cups to sponsored tournaments,
+      Xonotic allows every e-sport enthusiast to participate in competitions
+      hosted by its open-minded community.
+    </p>
+    <p xml:lang="de">
+      Xonotic ist leicht zu erlernen, aber schwer zu meistern. Neben einer
+      aufregenden Action für den Gelegenheitsspieler bietet das Spiel außerdem
+      Möglichkeiten für den E-Sport für alle, die an Wettkämpfen Spaß haben.
+      Von Kartengestaltungswettbewerben über monatlichen Schnellwettbewerben
+      bis zu gesponsorten Turnieren ermöglicht Xonotic jedem E-Sport-Liebhaber
+      eine Teilnahme in Wettbewerben, die von der aufgeschlossenen Gemeinschaft
+      veranstaltet werden.
+    </p>
+    <p xml:lang="fr">
+      Xonotic est facile à apprendre, mais difficile à maîtriser ! Outre une
+      action intense pour les joueurs débutants, le jeu propose aussi des
+      opportunités e-sport pour ceux qui sont intéressés par l'aspect
+      compétitif.
+    </p>
+    <p>
+      Features such as simple items, fully customizable configs and servers, a
+      functioning anticheat system, the spectator mode, and the opportunity to
+      watch and record games makes Xonotic attractive to competitive players.
+    </p>
+    <p xml:lang="de">
+      Features wie z.B. einfache Gegenstände, vollständig anpassbare
+      Einstellungen und Server, ein funktionierendes Anti-Cheat-System,
+      der Zuschauermodus, und die Möglichkeit, Spielen zuzusehen und
+      sie aufzuzeichnen, machen Xonotic interessant für wetteifernde Spieler.
+    </p>
+    <p xml:lang="fr">
+      Des fonctionnalités comme les items à apparence simplifiée, des
+      configurations et serveurs entièrement personnalisables, un système
+      anti-triche, un mode spectateur, ainsi que la possibilité d'enregistrer et
+      visionner des démos rendent Xonotic attrayant pour les joueurs
+      compétitifs.
+    </p>
+  </description>
+  <url type="homepage">https://xonotic.org</url>
+  <screenshots>
+    <screenshot type="default"><image>https://xonotic.org/m/uploads/2012/07/frontpage_005.jpg</image></screenshot>
+    <screenshot><image>https://xonotic.org/m/uploads/2012/07/frontpage_006.jpg</image></screenshot>
+    <screenshot><image>https://xonotic.org/m/uploads/2012/07/frontpage_007.jpg</image></screenshot>
+    <screenshot><image>https://xonotic.org/m/uploads/2012/07/frontpage_008.jpg</image></screenshot>
+    <screenshot><image>https://xonotic.org/m/uploads/2012/07/frontpage_003.jpg</image></screenshot>
+  </screenshots>
+  <content_rating type="oars-1.1">
+    <content_attribute id="violence-fantasy">moderate</content_attribute>
+    <content_attribute id="violence-bloodshed">mild</content_attribute>
+    <content_attribute id="social-chat">intense</content_attribute>
+  </content_rating>
+</component>
diff --git a/misc/logos/xonotic.appdata.xml b/misc/logos/xonotic.appdata.xml
deleted file mode 100644 (file)
index 215127d..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright 2018 Daniel Rusek <mail@asciiwolf.com> -->
-<component type="desktop">
-  <id>xonotic.desktop</id>
-  <project_license>GPL-3.0</project_license>
-  <metadata_license>CC0-1.0</metadata_license>
-  <name>Xonotic</name>
-  <summary>Multiplayer, deathmatch oriented first person shooter</summary>
-  <summary xml:lang="de">Deathmatch- und Mehrspieler-orientierter Ego-Shooter</summary>
-  <summary xml:lang="fr">Jeu de tir à la première personne multijoueur</summary>
-  <description>
-    <p>
-      Xonotic is a free and fast-paced first person shooter which combines
-      addictive, arena-style gameplay with rapid movement and a wide array of
-      weapons.
-    </p>
-    <p xml:lang="de">
-      Xonotic ist ein freier und schneller Ego-Shooter, der ein
-      Gameplay im Arenastil mit hektischen Manövern und einer großen Auswahl
-      an Waffen kombiniert.
-    </p>
-    <p xml:lang="fr">
-      Xonotic est un jeu de tir à la première personne gratuit, qui combine un
-      style de jeu en arène rapide et addictif avec une large sélection d'armes.
-    </p>
-    <p>
-      Xonotic is easy to learn, but hard to master! Besides thrilling action for
-      the casual player, the game also provides e-sport opportunities for those
-      interested in its competitive aspects.
-      From mapping contests and monthly quick cups to sponsored tournaments,
-      Xonotic allows every e-sport enthusiast to participate in competitions
-      hosted by its open-minded community.
-    </p>
-    <p xml:lang="de">
-      Xonotic ist leicht zu erlernen, aber schwer zu meistern. Neben einer
-      aufregenden Action für den Gelegenheitsspieler bietet das Spiel außerdem
-      Möglichkeiten für den E-Sport für alle, die an Wettkämpfen Spaß haben.
-      Von Kartengestaltungswettbewerben über monatlichen Schnellwettbewerben
-      bis zu gesponsorten Turnieren ermöglicht Xonotic jedem E-Sport-Liebhaber
-      eine Teilnahme in Wettbewerben, die von der aufgeschlossenen Gemeinschaft
-      veranstaltet werden.
-    </p>
-    <p xml:lang="fr">
-      Xonotic est facile à apprendre, mais difficile à maîtriser ! Outre une
-      action intense pour les joueurs débutants, le jeu propose aussi des
-      opportunités e-sport pour ceux qui sont intéressés par l'aspect
-      compétitif.
-    </p>
-    <p>
-      Features such as simple items, fully customizable configs and servers, a
-      functioning anticheat system, the spectator mode, and the opportunity to
-      watch and record games makes Xonotic attractive to competitive players.
-    </p>
-    <p xml:lang="de">
-      Features wie z.B. einfache Gegenstände, vollständig anpassbare
-      Einstellungen und Server, ein funktionierendes Anti-Cheat-System,
-      der Zuschauermodus, und die Möglichkeit, Spielen zuzusehen und
-      sie aufzuzeichnen, machen Xonotic interessant für wetteifernde Spieler.
-    </p>
-    <p xml:lang="fr">
-      Des fonctionnalités comme les items à apparence simplifiée, des
-      configurations et serveurs entièrement personnalisables, un système
-      anti-triche, un mode spectateur, ainsi que la possibilité d'enregistrer et
-      visionner des démos rendent Xonotic attrayant pour les joueurs
-      compétitifs.
-    </p>
-  </description>
-  <url type="homepage">https://xonotic.org</url>
-  <screenshots>
-    <screenshot type="default">https://xonotic.org/m/uploads/2012/07/frontpage_005.jpg</screenshot>
-    <screenshot>https://xonotic.org/m/uploads/2012/07/frontpage_006.jpg</screenshot>
-    <screenshot>https://xonotic.org/m/uploads/2012/07/frontpage_007.jpg</screenshot>
-    <screenshot>https://xonotic.org/m/uploads/2012/07/frontpage_008.jpg</screenshot>
-    <screenshot>https://xonotic.org/m/uploads/2012/07/frontpage_003.jpg</screenshot>
-  </screenshots>
-  <update_contact>mail@asciiwolf.com</update_contact>
-  <content_rating type="oars-1.1">
-    <content_attribute id="violence-cartoon">none</content_attribute>
-    <content_attribute id="violence-fantasy">moderate</content_attribute>
-    <content_attribute id="violence-realistic">none</content_attribute>
-    <content_attribute id="violence-bloodshed">mild</content_attribute>
-    <content_attribute id="violence-sexual">none</content_attribute>
-    <content_attribute id="violence-desecration">none</content_attribute>
-    <content_attribute id="violence-slavery">none</content_attribute>
-    <content_attribute id="violence-worship">none</content_attribute>
-    <content_attribute id="drugs-alcohol">none</content_attribute>
-    <content_attribute id="drugs-narcotics">none</content_attribute>
-    <content_attribute id="drugs-tobacco">none</content_attribute>
-    <content_attribute id="sex-nudity">none</content_attribute>
-    <content_attribute id="sex-themes">none</content_attribute>
-    <content_attribute id="sex-homosexuality">none</content_attribute>
-    <content_attribute id="sex-prostitution">none</content_attribute>
-    <content_attribute id="sex-adultery">none</content_attribute>
-    <content_attribute id="sex-appearance">none</content_attribute>
-    <content_attribute id="language-profanity">none</content_attribute>
-    <content_attribute id="language-humor">none</content_attribute>
-    <content_attribute id="language-discrimination">none</content_attribute>
-    <content_attribute id="social-chat">intense</content_attribute>
-    <content_attribute id="social-info">none</content_attribute>
-    <content_attribute id="social-audio">none</content_attribute>
-    <content_attribute id="social-location">none</content_attribute>
-    <content_attribute id="social-contacts">none</content_attribute>
-    <content_attribute id="money-purchasing">none</content_attribute>
-    <content_attribute id="money-gambling">none</content_attribute>
-  </content_rating>
-</component>
index 54f7c8c5530d5f2760750a499641175b8080f25a..b64e0484c420b09f4b29f1371757e35445e9e685 100644 (file)
@@ -217,6 +217,7 @@ case "$cmd" in
                depsdir=$6
                targetfiles=$7
                schroot=
+               makeflags="$makeflags VCREVISION=$(git -C "$d0/darkplaces" describe --always --dirty='~' 2>/dev/null || echo FIXME)"
                set -x
                if [ -z "$targetfiles" ]; then
                        exit
index bc249c625c686eacd4ce18be71612ba4d0113dd1..c181888b6dd16796f1a65d89b618d1a4162ef7cc 100755 (executable)
@@ -8,10 +8,10 @@ case "$2" in
                PATTERN='//CTS RECORD SET (.*)\n'
                ;;
        ctf)
-               PATTERN='//CTS RECORD SET (.*)\n'
+               PATTERN='//CTF RECORD SET (.*)\n'
                ;;
        new|race|rc|*)
-               PATTERN='//(?:RA?CE?|rc) RECORD SET (.*)\n'
+               PATTERN='//RA?CE? RECORD SET (.*)\n'
                ;;
 esac
 
index 15f56d9ed20e77816d8183f64f60ec72055f1a81..b149dffd7abb289e8bcd04bd6d1bf233dd25716a 100755 (executable)
@@ -1,31 +1,50 @@
 #!/bin/sh
 
-VER=$1
+# misc/tools/tag-release.sh
 
-case "$VER" in
-       '')
-               echo "Need version number as argument"
-               exit 1
+# bail when we aren't supposed to be making a release :)
+[ "$REALLY_DO_IT" != "yes" ] && exit 2
+
+case "$#" in
+       1)
+               VER=$1
                ;;
        *)
+               echo "Need version number as argument"
+               exit 1
                ;;
 esac
 
+set -eux
+
+
+
+# find xonotic/xonotic.git root repo
+ROOTREPO="$(realpath "$(dirname misc/tools/tag-release.sh)/../../")"
+cd "$ROOTREPO"
+git pull
+./all checkout
+./all update
+
+
+
 for r in \
-       /home/rpolzer/Games/Xonotic/. \
-       /home/rpolzer/Games/Xonotic/data/xonotic-data.pk3dir \
-       /home/rpolzer/Games/Xonotic/data/xonotic-music.pk3dir \
-       /home/rpolzer/Games/Xonotic/data/xonotic-nexcompat.pk3dir \
-       /home/rpolzer/Games/Xonotic/darkplaces \
-       /home/rpolzer/Games/Xonotic/d0_blind_id \
-       /home/rpolzer/Games/Xonotic/data/xonotic-maps.pk3dir \
-       /home/rpolzer/Games/Xonotic/mediasource \
-       /home/rpolzer/Games/Xonotic/gmqcc
+       "$ROOTREPO" \
+       "$ROOTREPO/data/xonotic-data.pk3dir" \
+       "$ROOTREPO/data/xonotic-music.pk3dir" \
+       "$ROOTREPO/data/xonotic-nexcompat.pk3dir" \
+       "$ROOTREPO/data/xonotic-xoncompat.pk3dir" \
+       "$ROOTREPO/darkplaces" \
+       "$ROOTREPO/d0_blind_id" \
+       "$ROOTREPO/data/xonotic-maps.pk3dir" \
+       "$ROOTREPO/mediasource" \
+       "$ROOTREPO/gmqcc"
+# excluded repos because not included with releases:
+       #"$ROOTREPO/netradiant"
+       #"$ROOTREPO/div0-gittools"
 do
        cd "$r"
-       git tag -u D276946B -m"version $VER" xonotic-v"$VER"
-done
 
-# excluded repos because not included with releases:
-#      /home/rpolzer/Games/Xonotic/netradiant \
-#      /home/rpolzer/Games/Xonotic/div0-gittools \
+       git tag --sign --message="version $VER" "xonotic-v$VER"
+       git push origin "xonotic-v$VER"
+done