2010-06-24 15:31:40 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# grep message type constants and make them into a .h file
|
|
|
|
(
|
2011-02-06 23:59:02 +01:00
|
|
|
cat ../common/include/minix/callnr.h | \
|
2010-06-24 15:31:40 +02:00
|
|
|
tr -s ' \t' ' ' | \
|
|
|
|
sed 's/^# /#/' | \
|
|
|
|
egrep '^#define [A-Z_][A-Z0-9_]* [0-9]+' | grep -v NCALLS
|
|
|
|
|
2011-02-06 23:59:02 +01:00
|
|
|
cat ../common/include/minix/com.h | \
|
2010-06-24 15:31:40 +02:00
|
|
|
tr -s ' \t' ' ' | \
|
|
|
|
sed 's/^# /#/' | \
|
|
|
|
egrep '^#define [A-Z_][A-Z0-9_]* \( ?([A-Z0-9_]+_BASE|KERNEL_CALL) ?\+[A-Za-z0-9_ +]+\)'
|
|
|
|
|
|
|
|
) | cut -d' ' -f2 | sed 's/\(.*\)/IDENT(\1)/' | sort
|