Use the errno.h and signal.h passed in on the command line.

This commit is contained in:
kim 2001-02-18 18:38:18 +00:00
parent d32a56145d
commit 4a22726eab

View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
# #
# $NetBSD: makeerrnos.sh,v 1.2 2001/01/16 02:46:25 cgd Exp $ # $NetBSD: makeerrnos.sh,v 1.3 2001/02/18 18:38:18 kim Exp $
if [ $# -ne 3 ]; then if [ $# -ne 3 ]; then
echo "usage: makeerrnos.sh errno.h signal.h output" echo "usage: makeerrnos.sh errno.h signal.h output"
@ -20,7 +20,7 @@ cat <<__EOF__ > $CFILE
struct systab errnos[] = { struct systab errnos[] = {
__EOF__ __EOF__
cat ${DESTDIR}/usr/include/sys/errno.h | ${CPP} ${CPPFLAGS} -dM | cat ${ERRNOH} | ${CPP} ${CPPFLAGS} -dM |
awk ' awk '
/^#[ ]*define[ ]*E[A-Z0-9]*[ ]*[0-9-][0-9]*[ ]*.*/ { /^#[ ]*define[ ]*E[A-Z0-9]*[ ]*[0-9-][0-9]*[ ]*.*/ {
for (i = 1; i <= NF; i++) for (i = 1; i <= NF; i++)
@ -44,7 +44,7 @@ cat <<__EOF__ >> $CFILE
struct systab signals[] = { struct systab signals[] = {
__EOF__ __EOF__
cat ${DESTDIR}/usr/include/sys/signal.h | ${CPP} ${CPPFLAGS} -dM | cat ${SIGNALH} | ${CPP} ${CPPFLAGS} -dM |
awk ' awk '
/^#[ ]*define[ ]*S[A-Z0-9]*[ ]*[0-9-][0-9]*[ ]*.*/ { /^#[ ]*define[ ]*S[A-Z0-9]*[ ]*[0-9-][0-9]*[ ]*.*/ {
for (i = 1; i <= NF; i++) for (i = 1; i <= NF; i++)