(svn r9307) [NoAI] -Fix: awk script was wrong for some awk versions, now it works for all versions we could test (Rubidium, TrueBrain, glx) noai
authortruelight
Sun, 18 Mar 2007 23:59:07 +0000
branchnoai
changeset 9469 7072beb81014
parent 9468 e3eb6d371fbb
child 9470 4593c953a276
(svn r9307) [NoAI] -Fix: awk script was wrong for some awk versions, now it works for all versions we could test (Rubidium, TrueBrain, glx)
bin/ai/regression/run.sh
--- a/bin/ai/regression/run.sh	Sun Mar 18 23:35:56 2007 +0000
+++ b/bin/ai/regression/run.sh	Sun Mar 18 23:59:07 2007 +0000
@@ -12,7 +12,7 @@
 	exit 1
 fi
 
-./openttd -x -c ai/regression/regression.cfg -snull -mnull -vnull -g ai/regression/regression.sav | awk '{ gsub("0x(nil)", "0x00000000", $0); print $0; }' > tmp.regression
+./openttd -a regression -x -c ai/regression/regression.cfg -snull -mnull -vnull -g ai/regression/regression.sav | awk '{ gsub("0x\\(nil\\)", "0x00000000", $0); print $0; }' > tmp.regression
 res="`diff -u ai/regression/regression.txt tmp.regression`"
 if [ -z "$res" ]; then
 	echo "Regression test passed!"