+2001-10-26 John Hughes <john@calva.com>
+
+ * svr4/ioctlent.sh: Cope with #define lines containing
+ comments that terminate on subsequent lines. Used to
+ comment out subsequent ioctls!
+
2001-10-25 Wichert Akkerman <wakkerma@debian.org>
* linux/ioctlent.h: regenerated using current scripts so
cd $1 || exit
find sys -name '*.h' -print |
xargs grep '^[ ]*#[ ]*define[ ][ ]*[A-Z_][A-Za-z0-9_]*[ ][ ]*([A-Za-z_][A-Za-z0-9_]*|[0-9][0-9]*)' /dev/null |
- sed 's/\(.*\):#[ ]*define[ ]*\([A-Z_][A-Za-z0-9_]*\)[ ]*\(([^)]*)\)[ ]*\(.*\)/ { "\1", "\2", \2 }, \4/'
+ sed 's/\(.*\):#[ ]*define[ ]*\([A-Z_][A-Za-z0-9_]*\)[ ]*\(([^)]*)\)[ ]*\(.*\)/ { "\1", "\2", \2 }, \4 \/**\//'
) >ioctlent.tmp
cat ioctlent.tmp |
awk '{ print "#include <" substr($2, 2, length($2) - 3) ">" }' |