Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/regress/sys/net
On Tue, Mar 01, 2011 at 08:02:40AM +0000, David Laight wrote:
> > autogen requires ed(1), which is not provided by our toolchain.
> > (In other words, this causes a odd build failure on some Linux build
> > hosts.)
>
> I've not looked, but it is probably not too hard to change the script
> to use a different tool.
> (Possibly just a shell script)
This should do the trick, modulo feeding in ${TOOL_AWK} properly:
Index: autogen
===================================================================
RCS file: /cvsroot/src/regress/sys/net/ether_aton_r/autogen,v
retrieving revision 1.1
diff -u -p -r1.1 autogen
--- autogen 19 May 2010 21:55:36 -0000 1.1
+++ autogen 3 Mar 2011 00:26:03 -0000
@@ -12,15 +12,9 @@ int ether_aton_r(u_char *dest, size_t le
__EOF
-ed $1 << _EOF > /dev/null 2>&1
-1
-/^ether_aton_r/
--
--
-1,.d
-/^}$/
-+
-.,\$d
-W $2
-q
-_EOF
+awk < $1 '
+ state == 0 && /^ether_aton_r/ { print prev; state = 1; }
+ state == 1 { print; }
+ state == 1 && /^}$/ { state = 2; }
+ { prev = $0; }
+' >> $2
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index