1
0
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:
Tom Lane
1998-10-28 19:38:47 +00:00
parent 1f27facc90
commit a787b88e3c
2 changed files with 14 additions and 9 deletions

View File

@@ -10,7 +10,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.1 1998/10/14 16:05:01 thomas Exp $
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.2 1998/10/28 19:38:46 tgl Exp $
#
# NOTES
# non-essential whitespace is removed from the generated file.
@@ -18,7 +18,7 @@
# end can be changed into another awk script or something smarter..
#
#-------------------------------------------------------------------------
trap "rm -f /tmp/genbki.tmp" 0 1 2 3 15
trap "rm -f /tmp/genbki.tmp /tmp/genbkitmp.c" 0 1 2 3 15
# make sure it is empty
>/tmp/genbki.tmp
@@ -261,8 +261,9 @@ END {
reln_open = 0;
}
}
' | \
@CPP@ @CPPSTDIN@ $BKIOPTS | \
' >/tmp/genbkitmp.c
@CPP@ $BKIOPTS /tmp/genbkitmp.c | \
sed -e '/^[ ]*$/d' \
-e 's/[ ][ ]*/ /g' || exit 1