Commit 9d2f3000 authored by Peter Eisentraut's avatar Peter Eisentraut

To create a temporary installation, the regression test driver should use

the make program that was used to build itself.  This seems more correct
than guessing around for some gmake.
parent 969e28d8
......@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.25 2000/10/02 06:07:25 tgl Exp $
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.26 2000/10/07 20:23:03 petere Exp $
#
#-------------------------------------------------------------------------
......@@ -36,6 +36,7 @@ pg_regress: pg_regress.sh GNUmakefile
-e 's,@datadir@,$(datadir),g' \
-e 's/@VERSION@/$(VERSION)/g' \
-e 's/@host_tuple@/$(host_tuple)/g' \
-e 's,@GMAKE@,$(MAKE),g' \
$< >$@
chmod a+x $@
......
#! /bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.6 2000/10/07 14:55:16 momjian Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.7 2000/10/07 20:23:03 petere Exp $
me=`basename $0`
: ${TMPDIR=/tmp}
......@@ -87,6 +87,8 @@ export PGPORT
dbname=regression
hostname=`hostname` || hostname=localhost
: ${GMAKE='@GMAKE@'}
# ----------
# Parse command line options
......@@ -169,17 +171,6 @@ case $host_platform in
DIFFFLAGS=-w;;
esac
# ----------
# Set up the GMAKE variable correctly.
# ----------
case $host_platform in
*beos*)
GMAKE=make;;
*)
GMAKE=gmake;;
esac
# ----------
# Set backend timezone and datestyle explicitly
......@@ -297,7 +288,7 @@ then
message "creating temporary installation"
mkdir -p "$LOGDIR" || { (exit 2); exit; }
${MAKE:-$GMAKE} -C "$top_builddir" DESTDIR="$temp_install" install >"$LOGDIR/install.log" 2>&1
$GMAKE -C "$top_builddir" DESTDIR="$temp_install" install >"$LOGDIR/install.log" 2>&1
if [ $? -ne 0 ]
then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment