]> granicus.if.org Git - postgresql/commitdiff
Allow auto-detection of cpp and required flags.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 14 Oct 1998 16:06:14 +0000 (16:06 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 14 Oct 1998 16:06:14 +0000 (16:06 +0000)
src/backend/utils/Gen_fmgrtab.sh.in

index 246acdf17901869b595c699385f6838543e07d01..757f291e66491c3c2a01c22a8ae8eb24b2309f57 100644 (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
 #
 #-------------------------------------------------------------------------
 
-# 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
  *