From 624eb9ee24de58b98c45fc8bdbda3e3a26b38ded Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Wed, 14 Oct 1998 16:06:14 +0000 Subject: [PATCH] Allow auto-detection of cpp and required flags. --- src/backend/utils/Gen_fmgrtab.sh.in | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/backend/utils/Gen_fmgrtab.sh.in b/src/backend/utils/Gen_fmgrtab.sh.in index 246acdf179..757f291e66 100644 --- a/src/backend/utils/Gen_fmgrtab.sh.in +++ b/src/backend/utils/Gen_fmgrtab.sh.in @@ -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 < $TABCFILE <