Commit 639a1069 authored by tim@work.mysql.com's avatar tim@work.mysql.com
Browse files

Add --just-configure (-c) option to BUILD scripts.

parent 38f16c1c
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -17,7 +17,11 @@ cd innobase
aclocal; autoheader; aclocal; automake; autoconf
cd ..

CFLAGS=\"$cflags\" CXX=gcc CXXFLAGS=\"$cxxflags\" $configure
CFLAGS=\"$cflags\" CXX=gcc CXXFLAGS=\"$cxxflags\" $configure"

if [ -z "$just_configure" ]
then
  commands="$commands

$make $AM_MAKEFLAGS"

@@ -30,6 +34,7 @@ nm --numeric-sort sql/mysqld > tmp/mysqld.sym
objdump -d sql/mysqld > tmp/mysqld.S
strip sql/mysqld"
  fi
fi

if test -z "$nonono"
then
+11 −4
Original line number Diff line number Diff line
@@ -5,18 +5,25 @@ then
fi

nonono=
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
  * ) break ;;
  esac
done

set -e

+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ sasha@mysql.sashanet.com
serg@serg.mysql.com
monty@donna.mysql.fi
tim@threads.polyesthetic.msg
tim@work.mysql.com