Really fix this work to work. While rev 1.24 did allow awk to run w/o

complaining; the resulting output was useless.
This commit is contained in:
David E. O'Brien 2001-11-01 02:16:10 +00:00
parent a3413a232a
commit 37397b32c9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85796

View File

@ -25,12 +25,12 @@ ioctl_includes=`
egrep -v '^(netns)/' |
xargs egrep -l \
'^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO[^a-z0-9_]' |
sed -e 's/^/#include </' -e s'/$/>/'
awk '{printf("#include <%s>\\\\n", $1)}'
`
echo "$ioctl_includes" |
awk -v x="$ioctl_includes" 'BEGIN {print x}' |
gcc -E -I$1 -dM - |
awk -v ioctl_includes="`echo $ioctl_includes`" -v use_switch="$use_switch" '
awk -v ioctl_includes="$ioctl_includes" -v use_switch="$use_switch" '
BEGIN {
print "/* XXX obnoxious prerequisites. */"
print "#define COMPAT_43"