summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authortim@work.mysql.com <>2001-03-04 22:34:26 +0100
committertim@work.mysql.com <>2001-03-04 22:34:26 +0100
commit639a1069d313843288ba6d9cb54b290073a748a7 (patch)
treef73fa7dc672491c7d434bd2a8dd522ede9d49166 /BUILD
parent38f16c1caa4a4286b166dbacf922425da82ffd1e (diff)
downloadmariadb-git-639a1069d313843288ba6d9cb54b290073a748a7.tar.gz
Add --just-configure (-c) option to BUILD scripts.
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD/FINISH.sh15
-rw-r--r--BUILD/SETUP.sh15
2 files changed, 21 insertions, 9 deletions
diff --git a/BUILD/FINISH.sh b/BUILD/FINISH.sh
index 48d9c7ad21b..41eab2442d7 100644
--- a/BUILD/FINISH.sh
+++ b/BUILD/FINISH.sh
@@ -17,19 +17,24 @@ cd innobase
aclocal; autoheader; aclocal; automake; autoconf
cd ..
-CFLAGS=\"$cflags\" CXX=gcc CXXFLAGS=\"$cxxflags\" $configure
+CFLAGS=\"$cflags\" CXX=gcc CXXFLAGS=\"$cxxflags\" $configure"
-$make $AM_MAKEFLAGS"
-
-if [ "x$strip" = "xyes" ]
+if [ -z "$just_configure" ]
then
commands="$commands
+$make $AM_MAKEFLAGS"
+
+ if [ "x$strip" = "xyes" ]
+ then
+ commands="$commands
+
mkdir -p tmp
nm --numeric-sort sql/mysqld > tmp/mysqld.sym
objdump -d sql/mysqld > tmp/mysqld.S
strip sql/mysqld"
-fi
+ fi
+fi
if test -z "$nonono"
then
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 9c267589ad6..7e0810dfd1c 100644
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -5,18 +5,25 @@ then
fi
nonono=
-case "$1" in
--n | --just-print ) nonono=1; shift ;;
--h | --help ) cat <<EOF; exit 0 ;;
+just_configure=
+while test $# -gt 0
+do
+ case "$1" in
+ -c | --just-configure ) just_configure=1; shift ;;
+ -n | --just-print ) nonono=1; shift ;;
+ -h | --help ) cat <<EOF; exit 0 ;;
Usage: $0 [-h|-n] [configure-options]
-h, --help Show this help message.
-n, --just-print Don't actually run any commands; just print them.
+ -c, --just-configure Stop after running configure.
Any other options will be passed directly to configure.
Note: this script is intended for internal use by MySQL developers.
EOF
-esac
+ * ) break ;;
+ esac
+done
set -e