Allow auto-detection of cpp and required flags.

This commit is contained in:
Thomas G. Lockhart 1998-10-14 16:06:14 +00:00
parent b48edd74d1
commit 624eb9ee24
1 changed files with 6 additions and 8 deletions

View File

@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.9 1998/01/31 05:54:57 momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
#
# NOTES
# Passes any -D options on to cpp prior to generating the list
@ -16,16 +16,14 @@
#
#-------------------------------------------------------------------------
# cpp is usually in one of these places...
PATH=/usr/lib:/lib:/usr/ccs/lib:$PATH
BKIOPTS=''
if [ $? != 0 ]
then
echo `basename $0`: Bad option
exit 1
fi
BKIOPTS=''
#
# Pass on any -D declarations, throwing away any other command
# line switches.
@ -65,7 +63,7 @@ sed -e 's/^.*OID[^=]*=[^0-9]*//' \
awk '
/^#/ { print; next; }
$4 == "11" { print; next; }' | \
cpp $BKIOPTS | \
@CPP@ @CPPSTDIN@ $BKIOPTS | \
egrep '^[0-9]' | \
sort -n > $RAWFILE
@ -81,7 +79,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: Gen_fmgrtab.sh.in,v 1.9 1998/01/31 05:54:57 momjian Exp $
* $Id: Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
*
* NOTES
* ******************************
@ -195,7 +193,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.9 1998/01/31 05:54:57 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
*
* NOTES
*