Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 624eb9e

Browse files
author
Thomas G. Lockhart
committed
Allow auto-detection of cpp and required flags.
1 parent b48edd7 commit 624eb9e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/backend/utils/Gen_fmgrtab.sh.in

+6-8
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.9 1998/01/31 05:54:57 momjian Exp $
11+
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
1212
#
1313
# NOTES
1414
# Passes any -D options on to cpp prior to generating the list
1515
# of internal functions. These come from BKIOPTS.
1616
#
1717
#-------------------------------------------------------------------------
1818

19-
# cpp is usually in one of these places...
20-
PATH=/usr/lib:/lib:/usr/ccs/lib:$PATH
21-
22-
BKIOPTS=''
2319
if [ $? != 0 ]
2420
then
2521
echo `basename $0`: Bad option
2622
exit 1
2723
fi
2824

25+
BKIOPTS=''
26+
2927
#
3028
# Pass on any -D declarations, throwing away any other command
3129
# line switches.
@@ -65,7 +63,7 @@ sed -e 's/^.*OID[^=]*=[^0-9]*//' \
6563
awk '
6664
/^#/ { print; next; }
6765
$4 == "11" { print; next; }' | \
68-
cpp $BKIOPTS | \
66+
@CPP@ @CPPSTDIN@ $BKIOPTS | \
6967
egrep '^[0-9]' | \
7068
sort -n > $RAWFILE
7169

@@ -81,7 +79,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
8179
*
8280
* Copyright (c) 1994, Regents of the University of California
8381
*
84-
* $Id: Gen_fmgrtab.sh.in,v 1.9 1998/01/31 05:54:57 momjian Exp $
82+
* $Id: Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
8583
*
8684
* NOTES
8785
* ******************************
@@ -195,7 +193,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
195193
*
196194
*
197195
* IDENTIFICATION
198-
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.9 1998/01/31 05:54:57 momjian Exp $
196+
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
199197
*
200198
* NOTES
201199
*

0 commit comments

Comments
 (0)