提交 624eb9ee 编写于 作者: T Thomas G. Lockhart

Allow auto-detection of cpp and required flags.

上级 b48edd74
......@@ -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
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册