mkfs: symlink support
[minix.git] / kernel / extract-errno.sh
blobcb5a10feb5c7d5f50427bbd8b0c975fd7547d60d
1 #!/bin/sh
3 set -e
5 # grep message type and errno constants and make them into a .h file
6 cat ../include/sys/errno.h | \
7 tr -s ' \t' ' ' | \
8 sed 's/^# /#/' | \
9 egrep '^#define [A-Z_][A-Z0-9_]* \( ?_SIGN ?[0-9]+ ?\)' | \
10 cut -d' ' -f2 | \
11 sed 's/\(.*\)/IDENT(\1)/' | \
12 sort