2010-06-24 15:31:40 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# grep message type and errno constants and make them into a .h file
|
2012-11-15 12:06:41 +01:00
|
|
|
cat ../sys/sys/errno.h | \
|
2010-06-24 15:31:40 +02:00
|
|
|
tr -s ' \t' ' ' | \
|
|
|
|
sed 's/^# /#/' | \
|
|
|
|
egrep '^#define [A-Z_][A-Z0-9_]* \( ?_SIGN ?[0-9]+ ?\)' | \
|
|
|
|
cut -d' ' -f2 | \
|
|
|
|
sed 's/\(.*\)/IDENT(\1)/' | \
|
|
|
|
sort
|