Commit dca0a547 authored by Bruce Momjian's avatar Bruce Momjian

Modify tools/pgtest to run the 'make' command from a variable, and default

to 'make' rather than 'gmake' for the binary name.
parent 15ba5907
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
# have enough kernel resources to run two postmasters or # have enough kernel resources to run two postmasters or
# stop your main postmaster before running this script. # stop your main postmaster before running this script.
# #
# Use -n to prevent 'gmake clean' # Use -n to prevent 'make clean'
MAKE="make"
[ ! -d src ] && echo "This must be run from the top of the PostgreSQL source tree" 1>&2 && exit 1 [ ! -d src ] && echo "This must be run from the top of the PostgreSQL source tree" 1>&2 && exit 1
...@@ -18,7 +20,7 @@ TMP="/tmp/$$" ...@@ -18,7 +20,7 @@ TMP="/tmp/$$"
[ "X$1" != "X-n" ] && PGCLEAN=clean [ "X$1" != "X-n" ] && PGCLEAN=clean
(gmake $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | ($MAKE $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) |
(tee $TMP/0; exit `cat $TMP/ret`) && (tee $TMP/0; exit `cat $TMP/ret`) &&
cat $TMP/0 | cat $TMP/0 |
# The following grep's have to be adjusted for your setup because # The following grep's have to be adjusted for your setup because
......
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