diff options
author | unknown <tim@work.mysql.com> | 2001-03-04 22:34:26 +0100 |
---|---|---|
committer | unknown <tim@work.mysql.com> | 2001-03-04 22:34:26 +0100 |
commit | 87d70fb598105b64b538ff6b81eef9da626255b1 (patch) | |
tree | f73fa7dc672491c7d434bd2a8dd522ede9d49166 /BUILD | |
parent | 3608312cf2c61e7fcfa77d3da3d2b535aa913529 (diff) | |
download | mariadb-git-87d70fb598105b64b538ff6b81eef9da626255b1.tar.gz |
Add --just-configure (-c) option to BUILD scripts.
BUILD/FINISH.sh:
Add --just-configure option
BUILD/SETUP.sh:
Add --just-configure option
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD/FINISH.sh | 15 | ||||
-rw-r--r-- | BUILD/SETUP.sh | 15 |
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 |