Enji Cooper 57718be8fa Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division
2014-10-02 23:26:49 +00:00

26 lines
368 B
Bash
Executable File

#!/bin/sh
awk '
BEGIN {
print
print "#include <ctype.h>"
print "#include <sys/types.h>"
print "#include <errno.h>"
print
print "#define ETHER_ADDR_LEN 6"
print
print "int ether_aton_r(u_char *dest, size_t len, const char *str);"
print
}
/^ether_aton_r/ {
print prevline
out = 1
}
{
if (out) print
else prevline = $0
}
/^}$/ {
if (out) exit(0)
}' $1 >$2