Merge branch 'fruitiex/newpanelhud' into fruitiex/newpanelhud_stable
[xonotic/xonotic-data.pk3dir.git] / update-cvarcount.sh
1 #!/bin/sh
2
3 countw=`awk '/^seta? g_/ { print $2; }' balance.cfg       | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32`
4 for b in balance*.cfg; do
5         countb=`awk '/^seta? g_/ { print $2; }' "$b"  | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32`
6         if [ "$countw" != "$countb" ]; then
7                 echo "Mismatch between balance.cfg and $b. Aborting."
8                 exit 1
9         fi
10 done