2007-11-16 14:57:27 +01:00
|
|
|
#!/bin/sh
|
2005-10-27 09:29:40 +02:00
|
|
|
#
|
2009-02-17 11:30:55 +01: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 09:51:34 +02:00
|
|
|
# Prepare the MySQL source code tree for building
|
|
|
|
# with checked-out InnoDB Subversion directory.
|
|
|
|
|
2006-10-03 15:10:20 +02:00
|
|
|
# This script assumes that the current directory is storage/innobase.
|
2005-10-27 09:29:40 +02:00
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2005-10-27 09:51:34 +02:00
|
|
|
TARGETDIR=../storage/innobase
|
2005-10-27 09:29:40 +02:00
|
|
|
|
2006-09-04 21:47:47 +02:00
|
|
|
# link the build scripts
|
2007-11-16 14:57:27 +01:00
|
|
|
BUILDSCRIPTS="compile-innodb compile-innodb-debug"
|
|
|
|
for script in $BUILDSCRIPTS ; do
|
|
|
|
ln -sf $TARGETDIR/$script ../../BUILD/
|
|
|
|
done
|
2005-10-27 09:29:40 +02:00
|
|
|
|
2006-09-12 09:29:57 +02:00
|
|
|
cd ../../mysql-test/t
|
2007-05-14 11:07:15 +02:00
|
|
|
ln -sf ../$TARGETDIR/mysql-test/*.test ../$TARGETDIR/mysql-test/*.opt .
|
2006-10-03 15:10:20 +02:00
|
|
|
cd ../r
|
|
|
|
ln -sf ../$TARGETDIR/mysql-test/*.result .
|
|
|
|
cd ../include
|
|
|
|
ln -sf ../$TARGETDIR/mysql-test/*.inc .
|
2009-02-26 08:21:20 +01: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
|