From e3059fc0f53ede1ae6f95076034b678f394d2e7a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 7 Jun 2000 16:27:00 +0000 Subject: Gen_fmgrtab.sh is strange: it is a platform dependent way (because it uses CPP) to create platform independent files. Unfortunately, that means that every config.status (or configure) run invariably causes a relink of the postmaster and also that we can't put these files in the distribution (usefully). So we make it a little smarter: when the output files already exist and it notices that it would recreate them in identical form, it doesn't touch them. In order to avoid re-running the make rule all the time we update a timestamp file instead. Update release_prep accordingly. Also make Gen_fmgrtab.sh use the awk that is detected at configure time, not necessarily named `awk' and have it check for exit statuses a little better. In other news... Remove USE_LOCALE from the templates, it was set to `no' everywhere anyway. Also remove YACC and YFLAGS from the templates, configure is smart enough to find bison or yacc itself. Use AC_PROG_YACC for that instead of the hand-crafted code. Do not set YFLAGS to `-d'. The make rules that need this flag should explicitly invoke it. YFLAGS should be a user variable. Update the makefiles to that effect. --- src/backend/bootstrap/Makefile | 6 +- src/backend/parser/Makefile | 6 +- src/backend/utils/Gen_fmgrtab.sh.in | 168 +++++++++++++++++++++++--------- src/backend/utils/Makefile | 15 ++- src/interfaces/ecpg/preproc/Makefile.in | 4 +- src/pl/plpgsql/src/Makefile.in | 4 +- src/template/aix_325 | 3 - src/template/aix_41 | 3 - src/template/aix_42 | 3 - src/template/aix_gcc | 3 - src/template/alpha_cc | 2 - src/template/alpha_gcc | 2 - src/template/bsdi_2.0 | 3 - src/template/bsdi_2.1 | 4 - src/template/bsdi_4.0 | 4 - src/template/bsdi_4.0_sparc | 3 - src/template/cygwin32 | 3 - src/template/dgux | 4 - src/template/freebsd | 3 - src/template/generic | 3 - src/template/hpux_cc | 2 - src/template/hpux_gcc | 2 - src/template/irix5 | 3 - src/template/linux_alpha | 3 - src/template/linux_arm | 3 - src/template/linux_i386 | 3 - src/template/linux_m68k | 3 - src/template/linux_mips | 3 - src/template/linux_ppc | 3 - src/template/linux_sparc | 3 - src/template/netbsd | 3 - src/template/nextstep | 3 - src/template/openbsd | 3 - src/template/qnx | 3 - src/template/sco | 4 - src/template/solaris_i386_cc | 3 - src/template/solaris_i386_gcc | 3 - src/template/solaris_sparc_cc | 3 - src/template/solaris_sparc_gcc | 3 - src/template/sunos4_cc | 3 - src/template/sunos4_gcc | 3 - src/template/svr4 | 3 - src/template/ultrix4 | 3 - src/template/univel | 3 - src/template/unixware | 2 - src/tools/release_prep | 7 ++ 46 files changed, 152 insertions(+), 174 deletions(-) (limited to 'src') diff --git a/src/backend/bootstrap/Makefile b/src/backend/bootstrap/Makefile index 9cffe422f01..deda81105d7 100644 --- a/src/backend/bootstrap/Makefile +++ b/src/backend/bootstrap/Makefile @@ -4,7 +4,7 @@ # Makefile for the bootstrap module # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.22 2000/05/29 05:44:42 tgl Exp $ +# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.23 2000/06/07 16:26:37 petere Exp $ # # # We must build bootparse.c and bootscanner.c with yacc and lex and sed, @@ -48,14 +48,14 @@ SUBSYS.o: $(OBJS) bootstrap.o: bootstrap_tokens.h bootstrap_tokens.h bootparse.c: bootparse.y - $(YACC) $(YFLAGS) $< + $(YACC) -d $(YFLAGS) $< grep -v "^#" boot.sed > sedfile sed -f sedfile < y.tab.c > bootparse.c mv y.tab.h bootstrap_tokens.h rm -f y.tab.c sedfile bootscanner.c: bootscanner.l - $(LEX) $< + $(LEX) $(LFLAGS) $< grep -v "^#" boot.sed > sedfile sed -f sedfile < lex.yy.c > bootscanner.c rm -f lex.yy.c sedfile diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefile index 1fdbd55a382..22310f8e282 100644 --- a/src/backend/parser/Makefile +++ b/src/backend/parser/Makefile @@ -4,7 +4,7 @@ # Makefile for parser # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.25 2000/05/29 05:44:53 tgl Exp $ +# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.26 2000/06/07 16:26:41 petere Exp $ # #------------------------------------------------------------------------- @@ -25,12 +25,12 @@ SUBSYS.o: $(OBJS) $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS) gram.c parse.h: gram.y - $(YACC) $(YFLAGS) $< + $(YACC) -d $(YFLAGS) $< mv y.tab.c gram.c mv y.tab.h parse.h scan.c: scan.l - $(LEX) $< + $(LEX) $(LFLAGS) $< mv lex.yy.c scan.c # The following dependencies on parse.h are computed by diff --git a/src/backend/utils/Gen_fmgrtab.sh.in b/src/backend/utils/Gen_fmgrtab.sh.in index bc6edf9019a..0ed5e0253b2 100644 --- a/src/backend/utils/Gen_fmgrtab.sh.in +++ b/src/backend/utils/Gen_fmgrtab.sh.in @@ -1,4 +1,4 @@ -#!/bin/sh +#! /bin/sh #------------------------------------------------------------------------- # # Gen_fmgrtab.sh @@ -9,36 +9,72 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.24 2000/06/02 02:00:28 tgl Exp $ -# -# NOTES -# Passes any -D options on to cpp prior to generating the list -# of internal functions. These come from BKIOPTS. +# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.25 2000/06/07 16:26:48 petere Exp $ # #------------------------------------------------------------------------- -BKIOPTS='' +CMDNAME=`basename $0` + +AWK="@AWK@" +CPP="@CPP@" + +cleanup(){ + [ x"$noclean" != x"t" ] && rm -f "$CPPTMPFILE" "$RAWFILE" "$OIDSFILE.tmp" "$TABLEFILE.tmp" +} + +BKIOPTS= +noclean= # -# Pass on any -D declarations, throwing away any other command -# line switches. +# Process command line switches. # -for opt in $* +while [ $# -gt 0 ] do - case $opt in - -D) BKIOPTS="$BKIOPTS -D$2"; shift; shift;; - -D*) BKIOPTS="$BKIOPTS $1"; shift;; + case $1 in + -D) + BKIOPTS="$BKIOPTS -D$2" + ;; + -D*) + BKIOPTS="$BKIOPTS $1" + shift;; + --noclean) + noclean=t + ;; + --help) + echo "$CMDNAME generates fmgroids.h and fmgrtab.c from pg_proc.h." + echo + echo "Usage:" + echo " $CMDNAME [ -D define [...] ]" + echo + echo "Report bugs to ." + exit 0 + ;; --) shift; break;; - -*) shift;; - esac + -*) + echo "$CMDNAME: invalid option: $1" + exit 1 + ;; + *) + INFILE=$1 + esac + shift done -INFILE=$1 -RAWFILE=fmgr.raw + +if [ x"$INFILE" = x ] ; then + echo "$CMDNAME: no input file" + exit 1 +fi + CPPTMPFILE=fmgrtmp.c +RAWFILE=fmgr.raw OIDSFILE=fmgroids.h TABLEFILE=fmgrtab.c + +trap 'echo "Caught signal." ; cleanup ; exit 1' 1 2 3 15 + + # # Generate the file containing raw pg_proc tuple data # (but only for "internal" and "newinternal" language procedures...). @@ -47,7 +83,7 @@ TABLEFILE=fmgrtab.c # deal with preprocessor statements first (before we sort the # function table by oid). # -awk ' +$AWK ' BEGIN { raw = 0; } /^DATA/ { print; next; } /^BKI_BEGIN/ { raw = 1; next; } @@ -56,21 +92,34 @@ raw == 1 { print; next; }' $INFILE | \ sed -e 's/^.*OID[^=]*=[^0-9]*//' \ -e 's/(//g' \ -e 's/[ ]*).*$//' | \ -awk ' +$AWK ' /^#/ { print; next; } $4 == "11" { print; next; } $4 == "12" { print; next; }' > $CPPTMPFILE -@CPP@ $BKIOPTS $CPPTMPFILE | \ +if [ $? -ne 0 ]; then + cleanup + echo "$CMDNAME failed" + exit 1 +fi + +$CPP $BKIOPTS $CPPTMPFILE | \ egrep '^[0-9]' | \ sort -n > $RAWFILE -rm -f $CPPTMPFILE +if [ $? -ne 0 ]; then + cleanup + echo "$CMDNAME failed" + exit 1 +fi + + +cpp_define=`echo $OIDSFILE | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | sed -e 's/[^A-Z]/_/g'` # # Generate fmgroids.h # -cat > $OIDSFILE < "${OIDSFILE}.tmp" < $OIDSFILE < $OIDSFILE <> $OIDSFILE + { if (seenit[$(NF-1)]++ == 0) print "#define F_", $(NF-1), " ", $1; }' >> "${OIDSFILE}.tmp" + +if [ $? -ne 0 ]; then + cleanup + echo "$CMDNAME failed" + exit 1 +fi -cat >> $OIDSFILE <> "${OIDSFILE}.tmp" < $TABLEFILE < "${TABLEFILE}.tmp" < $TABLEFILE < $TABLEFILE <> $TABLEFILE +$AWK '{ print "extern Datum", $(NF-1), "(PG_FUNCTION_ARGS);"; }' $RAWFILE >> "${TABLEFILE}.tmp" + +if [ $? -ne 0 ]; then + cleanup + echo "$CMDNAME failed" + exit 1 +fi + -cat >> $TABLEFILE <> "${TABLEFILE}.tmp" <> $TABLEFILE +}' $RAWFILE >> "${TABLEFILE}.tmp" -cat >> $TABLEFILE <> "${TABLEFILE}.tmp" < fmgrstamp-h +# don't clean fmgroids.h and fmgrtab.c clean: - rm -f SUBSYS.o fmgroids.h fmgrtab.o fmgrtab.c + rm -f SUBSYS.o fmgrtab.o for i in $(DIRS); do $(MAKE) -C $$i clean; done dep depend: fmgroids.h fmgrtab.c diff --git a/src/interfaces/ecpg/preproc/Makefile.in b/src/interfaces/ecpg/preproc/Makefile.in index cfa3dae4157..9d5aea9b700 100644 --- a/src/interfaces/ecpg/preproc/Makefile.in +++ b/src/interfaces/ecpg/preproc/Makefile.in @@ -26,12 +26,12 @@ ecpg: $(OBJS) $(CC) -o ecpg $(OBJS) $(LEXLIB) $(LDFLAGS) preproc.c preproc.h: preproc.y - $(YACC) $(YFLAGS) $< + $(YACC) -d $(YFLAGS) $< mv y.tab.c preproc.c mv y.tab.h preproc.h pgc.c: pgc.l - $(LEX) $< + $(LEX) $(LFLAGS) $< mv lex.yy.c pgc.c clean: diff --git a/src/pl/plpgsql/src/Makefile.in b/src/pl/plpgsql/src/Makefile.in index 0ab8d50c812..fa34ee02f94 100644 --- a/src/pl/plpgsql/src/Makefile.in +++ b/src/pl/plpgsql/src/Makefile.in @@ -4,7 +4,7 @@ # Makefile for the plpgsql shared object # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.24 2000/06/06 22:01:12 petere Exp $ +# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.25 2000/06/07 16:26:54 petere Exp $ # #------------------------------------------------------------------------- @@ -56,7 +56,7 @@ pl_parse.o: pl_gram.c pl_scan.c plpgsql.h $(CC) $(CFLAGS) -c -o $@ pl_gram.c pl_gram.c pl.tab.h: gram.y - $(YACC) $(YFLAGS) $< + $(YACC) -d $(YFLAGS) $< sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' pl_gram.c sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' pl.tab.h rm -f y.tab.c y.tab.h diff --git a/src/template/aix_325 b/src/template/aix_325 index 2cebc944c02..36c468b2b59 100644 --- a/src/template/aix_325 +++ b/src/template/aix_325 @@ -4,8 +4,5 @@ SHARED_LIB:-e _nostart -lc ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:xlc diff --git a/src/template/aix_41 b/src/template/aix_41 index 461e1f1572a..54f0dd09929 100644 --- a/src/template/aix_41 +++ b/src/template/aix_41 @@ -4,8 +4,5 @@ SHARED_LIB:-bnoentry -lc ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:xlc diff --git a/src/template/aix_42 b/src/template/aix_42 index 23500123322..ff4ad9a689c 100644 --- a/src/template/aix_42 +++ b/src/template/aix_42 @@ -4,8 +4,5 @@ SHARED_LIB:-lc ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:xlc diff --git a/src/template/aix_gcc b/src/template/aix_gcc index 1dd52a55c41..3a771721337 100644 --- a/src/template/aix_gcc +++ b/src/template/aix_gcc @@ -5,8 +5,5 @@ SHARED_LIB:-lc ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:gcc diff --git a/src/template/alpha_cc b/src/template/alpha_cc index be014190345..3ddf1133a08 100644 --- a/src/template/alpha_cc +++ b/src/template/alpha_cc @@ -13,7 +13,5 @@ ALL: SRCH_INC: SRCH_LIB: DLSUFFIX:.so -YFLAGS:-d -YACC: CCC:cxx CXXFLAGS:-D__alpha__ -DNOFIXADE -O4 -Olimit 2000 diff --git a/src/template/alpha_gcc b/src/template/alpha_gcc index 95bc7d8fc85..5f53298f71e 100644 --- a/src/template/alpha_gcc +++ b/src/template/alpha_gcc @@ -12,5 +12,3 @@ ALL: SRCH_INC: SRCH_LIB: DLSUFFIX:.so -YFLAGS:-d -YACC: diff --git a/src/template/bsdi_2.0 b/src/template/bsdi_2.0 index 102c562dea6..bcef190cf6e 100644 --- a/src/template/bsdi_2.0 +++ b/src/template/bsdi_2.0 @@ -4,8 +4,5 @@ SHARED_LIB: ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.o -YFLAGS:-d -YACC: CC:gcc2 diff --git a/src/template/bsdi_2.1 b/src/template/bsdi_2.1 index 0ade7de5db7..8a15d25aacb 100644 --- a/src/template/bsdi_2.1 +++ b/src/template/bsdi_2.1 @@ -4,9 +4,5 @@ SHARED_LIB: ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.o -YFLAGS:-d -YACC: CC:gcc2 - diff --git a/src/template/bsdi_4.0 b/src/template/bsdi_4.0 index 2b49793512b..5621715ef46 100644 --- a/src/template/bsdi_4.0 +++ b/src/template/bsdi_4.0 @@ -4,9 +4,5 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:gcc - diff --git a/src/template/bsdi_4.0_sparc b/src/template/bsdi_4.0_sparc index d928256e27e..2c861be120c 100644 --- a/src/template/bsdi_4.0_sparc +++ b/src/template/bsdi_4.0_sparc @@ -4,8 +4,5 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:gcc diff --git a/src/template/cygwin32 b/src/template/cygwin32 index 0a5d841cd99..be6e4c28cfe 100644 --- a/src/template/cygwin32 +++ b/src/template/cygwin32 @@ -4,8 +4,5 @@ SHARED_LIB: ALL: SRCH_INC:/usr/local/include SRCH_LIB:/usr/local/lib -USE_LOCALE:no DLSUFFIX:.dll -YFLAGS:-d -L /sw/cygwin-b20/share/ -YACC: LIBS:-lcygipc diff --git a/src/template/dgux b/src/template/dgux index 4a041f1fc28..a35179872d3 100644 --- a/src/template/dgux +++ b/src/template/dgux @@ -5,8 +5,4 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y - diff --git a/src/template/freebsd b/src/template/freebsd index cc21b761fe0..fd8ae769cdd 100644 --- a/src/template/freebsd +++ b/src/template/freebsd @@ -3,7 +3,4 @@ SHARED_LIB:-fpic -DPIC CFLAGS:-O2 -m486 -pipe SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/generic b/src/template/generic index 84479caa0c5..5f8e51d3133 100644 --- a/src/template/generic +++ b/src/template/generic @@ -4,7 +4,4 @@ SHARED_LIB: ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: diff --git a/src/template/hpux_cc b/src/template/hpux_cc index 755ce566fe4..f1f5eaa07ac 100644 --- a/src/template/hpux_cc +++ b/src/template/hpux_cc @@ -5,8 +5,6 @@ ALL: SRCH_INC: SRCH_LIB: DLSUFFIX:.sl -YFLAGS:-d -YACC: CC:cc CPP:cc -E -Ae # Make aCC be first C++ compiler name tried... diff --git a/src/template/hpux_gcc b/src/template/hpux_gcc index 365e5a020b3..4e78d420e7e 100644 --- a/src/template/hpux_gcc +++ b/src/template/hpux_gcc @@ -6,7 +6,5 @@ SRCH_INC: SRCH_LIB: DL_LIB:/usr/lib/libdld.sl DLSUFFIX:.sl -YFLAGS:-d -YACC: CC:gcc CCC:g++ diff --git a/src/template/irix5 b/src/template/irix5 index 84479caa0c5..5f8e51d3133 100644 --- a/src/template/irix5 +++ b/src/template/irix5 @@ -4,7 +4,4 @@ SHARED_LIB: ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: diff --git a/src/template/linux_alpha b/src/template/linux_alpha index 65415dd3a54..5abf05c96b1 100644 --- a/src/template/linux_alpha +++ b/src/template/linux_alpha @@ -4,7 +4,4 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/linux_arm b/src/template/linux_arm index 65415dd3a54..5abf05c96b1 100644 --- a/src/template/linux_arm +++ b/src/template/linux_arm @@ -4,7 +4,4 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/linux_i386 b/src/template/linux_i386 index 65415dd3a54..5abf05c96b1 100644 --- a/src/template/linux_i386 +++ b/src/template/linux_i386 @@ -4,7 +4,4 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/linux_m68k b/src/template/linux_m68k index 65415dd3a54..5abf05c96b1 100644 --- a/src/template/linux_m68k +++ b/src/template/linux_m68k @@ -4,7 +4,4 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/linux_mips b/src/template/linux_mips index 24f9d2fb7df..73e1d73a1ff 100644 --- a/src/template/linux_mips +++ b/src/template/linux_mips @@ -4,7 +4,4 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/linux_ppc b/src/template/linux_ppc index e59e39ac47b..688d6a1afaf 100755 --- a/src/template/linux_ppc +++ b/src/template/linux_ppc @@ -4,7 +4,4 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/linux_sparc b/src/template/linux_sparc index 65415dd3a54..5abf05c96b1 100644 --- a/src/template/linux_sparc +++ b/src/template/linux_sparc @@ -4,7 +4,4 @@ SHARED_LIB:-fpic ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/netbsd b/src/template/netbsd index 78a4dad51c1..ded2d63231d 100644 --- a/src/template/netbsd +++ b/src/template/netbsd @@ -3,7 +3,4 @@ SHARED_LIB:-fpic -DPIC CFLAGS:-O2 -pipe SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: diff --git a/src/template/nextstep b/src/template/nextstep index c97966dc9eb..c3269f27447 100644 --- a/src/template/nextstep +++ b/src/template/nextstep @@ -4,7 +4,4 @@ SHARED_LIB: ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.o -YFLAGS:-d -YACC: diff --git a/src/template/openbsd b/src/template/openbsd index 66186e958a3..ded2d63231d 100644 --- a/src/template/openbsd +++ b/src/template/openbsd @@ -3,7 +3,4 @@ SHARED_LIB:-fpic -DPIC CFLAGS:-O2 -pipe SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/qnx b/src/template/qnx index 9329ae32208..ad3ad163f62 100644 --- a/src/template/qnx +++ b/src/template/qnx @@ -5,8 +5,5 @@ SHARED_LIB: ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CXXFLAGS:-I/usr/local/lib/gcc-lib/i386-pc-qnx4/egcs-2.91.60/include/g++ diff --git a/src/template/sco b/src/template/sco index 60b48ce20bb..b2c8751b2c0 100644 --- a/src/template/sco +++ b/src/template/sco @@ -4,9 +4,5 @@ SHARED_LIB:-K PIC ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:yacc -LEX:lex CC:cc -b elf diff --git a/src/template/solaris_i386_cc b/src/template/solaris_i386_cc index 7841287aaf5..138597a40ee 100644 --- a/src/template/solaris_i386_cc +++ b/src/template/solaris_i386_cc @@ -4,8 +4,5 @@ SHARED_LIB:-K PIC ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:cc diff --git a/src/template/solaris_i386_gcc b/src/template/solaris_i386_gcc index 7bb56160cca..43f3f06ffb3 100644 --- a/src/template/solaris_i386_gcc +++ b/src/template/solaris_i386_gcc @@ -4,7 +4,4 @@ SHARED_LIB:-fPIC ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: diff --git a/src/template/solaris_sparc_cc b/src/template/solaris_sparc_cc index af831008f6c..79fb981925b 100644 --- a/src/template/solaris_sparc_cc +++ b/src/template/solaris_sparc_cc @@ -4,8 +4,5 @@ SHARED_LIB:-K PIC ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:cc diff --git a/src/template/solaris_sparc_gcc b/src/template/solaris_sparc_gcc index 7bb56160cca..43f3f06ffb3 100644 --- a/src/template/solaris_sparc_gcc +++ b/src/template/solaris_sparc_gcc @@ -4,7 +4,4 @@ SHARED_LIB:-fPIC ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: diff --git a/src/template/sunos4_cc b/src/template/sunos4_cc index f9c4582ac9d..dc2580bca80 100644 --- a/src/template/sunos4_cc +++ b/src/template/sunos4_cc @@ -4,8 +4,5 @@ SHARED_LIB:-PIC ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: CC:cc diff --git a/src/template/sunos4_gcc b/src/template/sunos4_gcc index d05ea860948..73ae40585d6 100644 --- a/src/template/sunos4_gcc +++ b/src/template/sunos4_gcc @@ -4,7 +4,4 @@ SHARED_LIB:-fPIC ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: diff --git a/src/template/svr4 b/src/template/svr4 index 13cf224ffcc..26d5c0ca394 100644 --- a/src/template/svr4 +++ b/src/template/svr4 @@ -4,7 +4,4 @@ SHARED_LIB: ALL:+W0 SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC:bison -y diff --git a/src/template/ultrix4 b/src/template/ultrix4 index 237426646f7..6b87bc3106e 100644 --- a/src/template/ultrix4 +++ b/src/template/ultrix4 @@ -4,7 +4,4 @@ SHARED_LIB:-G 0 ALL: SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YFLAGS:-d -YACC: diff --git a/src/template/univel b/src/template/univel index dcdfae8af4a..680d3bd9b68 100644 --- a/src/template/univel +++ b/src/template/univel @@ -3,9 +3,6 @@ CFLAGS:-v -O -K i486,host,inline,loop_unroll -Dsvr4 SHARED_LIB:-K PIC SRCH_INC: SRCH_LIB: -USE_LOCALE:no DLSUFFIX:.so -YACC:yacc -YFLAGS:-d CC:cc LIBS:-lc89 diff --git a/src/template/unixware b/src/template/unixware index 0dd81b5c2d7..976b5b9541a 100644 --- a/src/template/unixware +++ b/src/template/unixware @@ -3,7 +3,5 @@ CFLAGS:-O -K i486,host,inline,loop_unroll,alloca -Dsvr4 SHARED_LIB:-K PIC SRCH_INC:/opt/include SRCH_LIB:/opt/lib -USE_LOCALE:no DLSUFFIX:.so CC:cc -YFLAGS:-d diff --git a/src/tools/release_prep b/src/tools/release_prep index 85d12b13151..fc7691589bd 100755 --- a/src/tools/release_prep +++ b/src/tools/release_prep @@ -43,6 +43,13 @@ rm -f bootstrap_tokens.h bootparse.c bootscanner.c $MAKE bootstrap_tokens.h bootparse.c bootscanner.c cd ../../.. +# Generate function manager files + +cd src/backend/utils +rm -f fmgroids.h fmgrtab.c fmgrstamp-h +$MAKE fmgroids.h fmgrtab.c +cd ../../.. + # Generate configuration file scanner cd src/backend/utils/misc -- cgit v1.2.3