From f9339b35d974556b4fe8c87abd5c9008bd5a6c87 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 30 Jan 2001 20:43:16 -0500 Subject: Add --just-print and --help options to BUILD/compile-* scripts. BUILD/FINISH.sh: Add --just-print and --help options, +cleanup. BUILD/SETUP.sh: Add --just-print and --help options, +cleanup. BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted --- BUILD/SETUP.sh | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) (limited to 'BUILD/SETUP.sh') diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh index 53082b7bd79..9c267589ad6 100644 --- a/BUILD/SETUP.sh +++ b/BUILD/SETUP.sh @@ -1,11 +1,27 @@ -if ! test -f sql/mysqld.cc; then +if ! test -f sql/mysqld.cc +then echo "You must run this script from the MySQL top-level directory" exit 1 fi -set -e # exit on error +nonono= +case "$1" in +-n | --just-print ) nonono=1; shift ;; +-h | --help ) cat < /dev/null 2>&1; then +if gmake --version > /dev/null 2>&1 +then make=gmake else make=make fi - -$make -k clean || true -/bin/rm -f */.deps/*.P config.cache - -aclocal; autoheader; aclocal; automake; autoconf -- cgit v1.2.1