X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=update-cvarcount.sh;h=0bd63e9fb2ad9d57e61582ddf0d691cff8a5f831;hp=e322501fce9be816a5cc09e6a25891b47bb9d573;hb=7792741070f3235ad6c4c4542f4c6cf0ee8b734f;hpb=a271dac885ffbfb3f944f942970333cfeb2fb4f8 diff --git a/update-cvarcount.sh b/update-cvarcount.sh index e322501fc..0bd63e9fb 100755 --- a/update-cvarcount.sh +++ b/update-cvarcount.sh @@ -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