[Openswan dev] [PATCH] remove complex sed pattern from manual
David McCullough
davidm at snapgear.com
Wed Feb 15 10:32:29 CET 2006
Hi all,
Attached is a patch to remove a sed script in favour of just
extending the existing awk script. Some embedded versions of sed
cannot handle the complex script.
Patch is against 2.4.5rc5
Cheers,
Davidm
--
David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com
-------------- next part --------------
Index: openswan/programs/manual/manual.in
===================================================================
RCS file: /cvs/sw/new-wave/openswan/programs/manual/manual.in,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 manual.in
--- openswan/programs/manual/manual.in 31 Jan 2006 00:53:39 -0000 1.1.1.3
+++ openswan/programs/manual/manual.in 15 Feb 2006 00:27:32 -0000
@@ -102,9 +102,11 @@
/^[^ \t]/ { interf = "" ; next }
/^[ \t]*inet addr/ {
sub(/:/, " ", $0)
- if (interf != "")
- print $3 "@" interf
- }' | sed ':a;N;$!ba;s/\n/ /g'`"
+ if (interf != "") {
+ printf "%s%s@%s", spacesep, $3, interf
+ spacesep=" "
+ }
+ }'`"
;;
esac
More information about the Dev
mailing list