cope with ioctl #defines with extraneous spaces
This commit is contained in:
parent
e922478dd4
commit
5eb78d5f74
@ -1,3 +1,7 @@
|
|||||||
|
2002-05-17 John Hughes <john@calva.com>
|
||||||
|
|
||||||
|
* svr4/ioctlent.sh: Some defines on UW come with too many spaces.
|
||||||
|
|
||||||
2002-05-17 John Hughes <john@calva.com>
|
2002-05-17 John Hughes <john@calva.com>
|
||||||
|
|
||||||
* svr4/ioctlent.sh: Cope with #defines wrapped in #ifdefs.
|
* svr4/ioctlent.sh: Cope with #defines wrapped in #ifdefs.
|
||||||
|
@ -32,13 +32,13 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bad_includes='cg[48]var\.h'
|
bad_includes='cg[48]var\.h|sys/spad\.h'
|
||||||
bad_defines='cg[48]var\.h|READSLICE|I_E_RECVFD|FBIOGPIXRECT|JTIMO|TTYTYPE|TIOCCONS|TCL_LINK|TCL_UNLINK'
|
bad_defines='cg[48]var\.h|READSLICE|I_E_RECVFD|FBIOGPIXRECT|JTIMO|TTYTYPE|TIOCCONS|TCL_LINK|TCL_UNLINK'
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $1 || exit
|
cd $1 || exit
|
||||||
find sys -name '*.h' -print |
|
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 |
|
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
|
) >ioctlent.tmp
|
||||||
cat ioctlent.tmp |
|
cat ioctlent.tmp |
|
||||||
|
Loading…
Reference in New Issue
Block a user