fa59fc6eb4
Headers that will be shared between old includes and NetBSD-like includes are moved into common/include tree. They are still copied in /usr/include in 'make includes', so compilation and programs aren't be affected.
17 lines
451 B
Bash
17 lines
451 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# grep message type constants and make them into a .h file
|
|
(
|
|
cat ../common/include/minix/callnr.h | \
|
|
tr -s ' \t' ' ' | \
|
|
sed 's/^# /#/' | \
|
|
egrep '^#define [A-Z_][A-Z0-9_]* [0-9]+' | grep -v NCALLS
|
|
|
|
cat ../common/include/minix/com.h | \
|
|
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
|