2007-11-16 13:57:27 +00:00
|
|
|
#!/bin/sh
|
2005-10-27 07:29:40 +00:00
|
|
|
#
|
2009-02-17 10:30:55 +00:00
|
|
|
# Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify it under
|
|
|
|
# the terms of the GNU General Public License as published by the Free Software
|
|
|
|
# Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along with
|
|
|
|
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
|
|
# Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
#
|
2005-10-27 07:51:34 +00:00
|
|
|
# Prepare the MySQL source code tree for building
|
|
|
|
# with checked-out InnoDB Subversion directory.
|
|
|
|
|
2006-10-03 13:10:20 +00:00
|
|
|
# This script assumes that the current directory is storage/innobase.
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2005-10-27 07:51:34 +00:00
|
|
|
TARGETDIR=../storage/innobase
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-09-04 19:47:47 +00:00
|
|
|
# link the build scripts
|
2007-11-16 13:57:27 +00:00
|
|
|
BUILDSCRIPTS="compile-innodb compile-innodb-debug"
|
|
|
|
for script in $BUILDSCRIPTS ; do
|
|
|
|
ln -sf $TARGETDIR/$script ../../BUILD/
|
|
|
|
done
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-09-12 07:29:57 +00:00
|
|
|
cd ../../mysql-test/t
|
2007-05-14 09:07:15 +00:00
|
|
|
ln -sf ../$TARGETDIR/mysql-test/*.test ../$TARGETDIR/mysql-test/*.opt .
|
2006-10-03 13:10:20 +00:00
|
|
|
cd ../r
|
|
|
|
ln -sf ../$TARGETDIR/mysql-test/*.result .
|
|
|
|
cd ../include
|
|
|
|
ln -sf ../$TARGETDIR/mysql-test/*.inc .
|
2009-02-26 07:21:20 +00:00
|
|
|
|
|
|
|
# Apply any patches that are needed to make the mysql-test suite successful.
|
|
|
|
# These patches are usually needed because of deviations of behavior between
|
|
|
|
# the stock InnoDB and the InnoDB Plugin.
|
|
|
|
cd ../..
|
|
|
|
for patch in storage/innobase/mysql-test/patches/*.diff ; do
|
|
|
|
if [ "${patch}" != "storage/innobase/mysql-test/patches/*.diff" ] ; then
|
|
|
|
patch -p0 < ${patch}
|
|
|
|
fi
|
|
|
|
done
|