repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove building with NOCRYPTO option
[minix.git]
/
minix
/
kernel
/
extract-errno.sh
blob
99b476599d93ea6ca16ab1438d5cd9dabf9235ec
1
#!/bin/sh
2
3
set -e
4
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