]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - update-cvarcount.sh
default maxplayers: 16
[xonotic/xonotic-data.pk3dir.git] / update-cvarcount.sh
index e322501fce9be816a5cc09e6a25891b47bb9d573..0bd63e9fb2ad9d57e61582ddf0d691cff8a5f831 100755 (executable)
@@ -6,8 +6,10 @@ for b in balance*.cfg; do
        if [ "$countw" != "$countb" ]; then
                echo "Mismatch between balanceXonotic.cfg and $b. Aborting."
                echo "Differences are:"
-               A=`mktemp`
-               B=`mktemp`
+               echo "< missing in $b"
+               echo "> must get removed from $b"
+               A=`mktemp || echo a.tmp`
+               B=`mktemp || echo b.tmp`
                awk '/^seta? g_/ { print $2; }' balanceXonotic.cfg       | sort -u | tr -d '\r' > "$A"
                awk '/^seta? g_/ { print $2; }' "$b"                     | sort -u | tr -d '\r' > "$B"
                diff "$A" "$B" | grep '^[<>]' | sort