#
#
# 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.
# 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
reln_open = 0;
}
}
-' | \
-@CPP@ @CPPSTDIN@ $BKIOPTS | \
+' >/tmp/genbkitmp.c
+
+@CPP@ $BKIOPTS /tmp/genbkitmp.c | \
sed -e '/^[ ]*$/d' \
-e 's/[ ][ ]*/ /g' || exit 1
#
#
# 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
INFILE=$1
RAWFILE=fmgr.raw
+CPPTMPFILE=fmgrtmp.c
HFILE=fmgr.h
TABCFILE=fmgrtab.c
-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
#
*
* 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
* ******************************
*
*
* 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
*