Bigger prey position for healthsize
[voretournament/voretournament.git] / data / update-cvarcount.sh
1 #!/bin/sh\r
2 \r
3 balance_cfgs="balanceHavoc.cfg balance25.cfg balanceSamual.cfg balanceNexrun.cfg"\r
4 \r
5 countw=`awk '/^seta? g_/ { print $2; }' balance.cfg       | sort -u | tr -d '\r' | md5sum | cut -c 1-32`\r
6 for b in $balance_cfgs; do\r
7         countb=`awk '/^seta? g_/ { print $2; }' "$b"  | sort -u | tr -d '\r' | md5sum | cut -c 1-32`\r
8         if [ "$countw" != "$countb" ]; then\r
9                 echo "Mismatch between balance.cfg and $b. Aborting."\r
10                 exit 1\r
11         fi\r
12 done\r