FINISH.sh 1.06 KB
Newer Older
unknown's avatar
unknown committed
1 2 3
cflags="$c_warnings $extra_flags"
cxxflags="$cxx_warnings $base_cxxflags $extra_flags"
configure="./configure $base_configs $extra_configs"
4 5 6 7 8
for arg
do
  # Escape special characters so they don't confuse eval
  configure="$configure "`echo "$arg" | \
  		sed -e 's,\([^a-zA-Z0-9_.=-]\),\\\\\1,g'`
9 10
done

11 12
commands="\
$make -k clean || true 
unknown's avatar
unknown committed
13
/bin/rm -f */.deps/*.P config.cache innobase/config.cache bdb/build_unix/config.cache
unknown's avatar
unknown committed
14

15 16 17
aclocal && autoheader && aclocal && automake && autoconf
(cd bdb/dist && sh s_all)
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
18 19 20 21
if [ -d gemini ]
then
   (cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
fi
unknown's avatar
unknown committed
22

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

25
if [ -z "$just_configure" ]
26 27
then
  commands="$commands
unknown's avatar
unknown committed
28

29 30 31 32 33 34
$make $AM_MAKEFLAGS"

  if [ "x$strip" = "xyes" ]
  then
    commands="$commands

35
mkdir -p tmp
36 37 38
nm --numeric-sort sql/mysqld  > tmp/mysqld.sym
objdump -d sql/mysqld > tmp/mysqld.S
strip sql/mysqld"
39 40
  fi
fi
41 42 43 44 45 46 47

if test -z "$nonono"
then
  eval "set -x; $commands"
else
  echo "$commands"
fi