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