(svn r9304) [NoAI] -Fix r9296: use awk instead of sed to prevent eol problems noai
authorglx
Sun, 18 Mar 2007 22:44:53 +0000
branchnoai
changeset 9466 ce783f899b3c
parent 9465 ccc1a559607b
child 9467 730cae121ae3
(svn r9304) [NoAI] -Fix r9296: use awk instead of sed to prevent eol problems
bin/ai/regression/run.sh
--- a/bin/ai/regression/run.sh	Sun Mar 18 21:31:57 2007 +0000
+++ b/bin/ai/regression/run.sh	Sun Mar 18 22:44:53 2007 +0000
@@ -12,7 +12,7 @@
 	exit 1
 fi
 
-./openttd -x -c ai/regression/regression.cfg -snull -mnull -vnull -g ai/regression/regression.sav | sed 's/0x(nil)/0x00000000/g' > tmp.regression
+./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
 res="`diff -u ai/regression/regression.txt tmp.regression`"
 if [ -z "$res" ]; then
 	echo "Regression test passed!"