Remove building with NOCRYPTO option
[minix.git] / minix / kernel / extract-errno.sh
blob99b476599d93ea6ca16ab1438d5cd9dabf9235ec
1 #!/bin/sh
3 set -e
5 # grep message type and errno constants and make them into a .h file
6 cat ../../sys/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)/' | grep -v ELAST | \
12 sort