From e6ccba7df78d90c720b2ce4b6a619f344af6b5e9 Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Mon, 21 Jan 2013 00:34:28 +0000 Subject: [PATCH] should be 'awk' for compatibility git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7123 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/convert_mapconfig.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/convert_mapconfig.sh b/config/convert_mapconfig.sh index 047aaa44..b052c35e 100644 --- a/config/convert_mapconfig.sh +++ b/config/convert_mapconfig.sh @@ -58,10 +58,10 @@ for file in $*; do # 2) Remove comments. # 3) Remove trailing spaces/tabs. # 4) Remove blank lines. - gawk '{sub(/\r$/,"")};1' $file.BAK | \ - gawk -F'//' '{print $1}' | \ - gawk '{sub(/[ \t]+$/, "")};1' | \ - gawk NF > $file + awk '{sub(/\r$/,"")};1' $file.BAK | \ + awk -F'//' '{print $1}' | \ + awk '{sub(/[ \t]+$/, "")};1' | \ + awk NF > $file fi if [ "$1" = "-os" ] || [ "$1" = "--onlystrip" ]; then echo -e "As requested, "$file" has been stripped of cruft and no conversion was made.\n"