mirror of
https://github.com/postgres/postgres.git
synced 2025-11-15 03:41:20 +03:00
Eliminate need for cpp-from-stdin by using a temp file.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
|
||||
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.12 1998/10/28 19:38:47 tgl Exp $
|
||||
#
|
||||
# NOTES
|
||||
# Passes any -D options on to cpp prior to generating the list
|
||||
@@ -40,6 +40,7 @@ done
|
||||
|
||||
INFILE=$1
|
||||
RAWFILE=fmgr.raw
|
||||
CPPTMPFILE=fmgrtmp.c
|
||||
HFILE=fmgr.h
|
||||
TABCFILE=fmgrtab.c
|
||||
|
||||
@@ -62,11 +63,14 @@ sed -e 's/^.*OID[^=]*=[^0-9]*//' \
|
||||
-e 's/[ ]*).*$//' | \
|
||||
awk '
|
||||
/^#/ { print; next; }
|
||||
$4 == "11" { print; next; }' | \
|
||||
@CPP@ @CPPSTDIN@ $BKIOPTS | \
|
||||
$4 == "11" { print; next; }' > $CPPTMPFILE
|
||||
|
||||
@CPP@ $BKIOPTS $CPPTMPFILE | \
|
||||
egrep '^[0-9]' | \
|
||||
sort -n > $RAWFILE
|
||||
|
||||
rm -f $CPPTMPFILE
|
||||
|
||||
#
|
||||
# Generate fmgr.h
|
||||
#
|
||||
@@ -79,7 +83,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
|
||||
* $Id: Gen_fmgrtab.sh.in,v 1.12 1998/10/28 19:38:47 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* ******************************
|
||||
@@ -193,7 +197,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.12 1998/10/28 19:38:47 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user