[nexuiz-commits] r7767 - trunk/data

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Sep 12 13:48:40 EDT 2009


Author: div0
Date: 2009-09-12 13:48:40 -0400 (Sat, 12 Sep 2009)
New Revision: 7767

Modified:
   trunk/data/update-cvarcount.sh
Log:
attempt to make update-cvarcount work on cygwin too


Modified: trunk/data/update-cvarcount.sh
===================================================================
--- trunk/data/update-cvarcount.sh	2009-09-12 17:37:25 UTC (rev 7766)
+++ trunk/data/update-cvarcount.sh	2009-09-12 17:48:40 UTC (rev 7767)
@@ -1,9 +1,9 @@
 #!/bin/sh
 
-countd=`awk '/^seta? g_/ { print $2; }' defaultNexuiz.cfg | sort -u | md5sum | cut -c 1-32`
-countw=`awk '/^seta? g_/ { print $2; }' weapons.cfg       | sort -u | md5sum | cut -c 1-32`
-counth=`awk '/^seta? g_/ { print $2; }' weaponsHavoc.cfg  | sort -u | md5sum | cut -c 1-32`
-countl=`awk '/^seta? g_/ { print $2; }' weapons25.cfg     | sort -u | md5sum | cut -c 1-32`
+countd=`awk '/^seta? g_/ { print $2; }' defaultNexuiz.cfg | sort -u | tr -d '\r' | md5sum | cut -c 1-32`
+countw=`awk '/^seta? g_/ { print $2; }' weapons.cfg       | sort -u | tr -d '\r' | md5sum | cut -c 1-32`
+counth=`awk '/^seta? g_/ { print $2; }' weaponsHavoc.cfg  | sort -u | tr -d '\r' | md5sum | cut -c 1-32`
+countl=`awk '/^seta? g_/ { print $2; }' weapons25.cfg     | sort -u | tr -d '\r' | md5sum | cut -c 1-32`
 
 if [ "$countw" != "$counth" ]; then
 	echo "Mismatch between weapons.cfg and weaponsHavoc.cfg. Aborting."



More information about the nexuiz-commits mailing list