From 76c7cdead7b0aad6af7b16f91d5a1a0404986bda Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 1 Nov 2006 01:14:07 +0000 Subject: [PATCH] Avoid hard dependency on awk git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4777 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/compiler | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Shorewall/compiler b/Shorewall/compiler index 1040874e0..7abb72dc6 100755 --- a/Shorewall/compiler +++ b/Shorewall/compiler @@ -4909,7 +4909,11 @@ __EOF__ # mycat() { - awk 'BEGIN {blnk=0;}; /^\s*$/ {blnk=1; next; }; { if (blnk == 1 ) { print ""; blnk=0; }; print; }' $* + if [ -n "$(mywhich awk)" ]; then + awk 'BEGIN {blnk=0;}; /^\s*$/ {blnk=1; next; }; { if (blnk == 1 ) { print ""; blnk=0; }; print; }' $* + else + cat $* + fi } #