2005-10-27 09:29:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2005-10-27 09:51:34 +02:00
|
|
|
# Prepare the MySQL source code tree for building
|
|
|
|
# with checked-out InnoDB Subversion directory.
|
|
|
|
|
2005-10-27 09:29:40 +02:00
|
|
|
# This script assumes that the MySQL tree is at .. and that . = ../innodb
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2005-10-27 09:51:34 +02:00
|
|
|
TARGETDIR=../storage/innobase
|
2005-10-27 09:29:40 +02:00
|
|
|
|
|
|
|
rm -fr "$TARGETDIR"
|
|
|
|
mkdir "$TARGETDIR"
|
|
|
|
|
2006-09-04 21:47:47 +02:00
|
|
|
# link the build scripts
|
|
|
|
ln -sf ../innodb/compile-innodb{,-debug} ../BUILD
|
2005-11-29 13:30:46 +01:00
|
|
|
|
2005-10-27 09:29:40 +02:00
|
|
|
# create the directories
|
|
|
|
for dir in */
|
|
|
|
do
|
2005-10-27 09:51:34 +02:00
|
|
|
case "$dir" in
|
|
|
|
handler/) ;;
|
|
|
|
mysql-test/) ;;
|
|
|
|
*.svn*) ;;
|
|
|
|
*to-mysql*) ;;
|
|
|
|
*) mkdir "$TARGETDIR/$dir" ;;
|
|
|
|
esac
|
2005-10-27 09:29:40 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
# create the symlinks to files
|
|
|
|
cd "$TARGETDIR"
|
|
|
|
for dir in */
|
|
|
|
do
|
2005-10-27 09:51:34 +02:00
|
|
|
cd "$dir"
|
|
|
|
ln -s ../../../innodb/"$dir"* .
|
|
|
|
cd ..
|
2005-10-27 09:29:40 +02:00
|
|
|
done
|
2006-09-04 21:47:47 +02:00
|
|
|
for file in plug.in Makefile.am CMakeLists.txt
|
2005-10-27 09:29:40 +02:00
|
|
|
do
|
2005-10-27 09:51:34 +02:00
|
|
|
ln -s ../../innodb/"$file" .
|
2005-10-27 09:29:40 +02:00
|
|
|
done
|
|
|
|
|
2005-10-27 09:51:34 +02:00
|
|
|
cd ..
|
2005-10-27 09:29:40 +02:00
|
|
|
ln -sf ../innodb/handler/ha_innodb.h ../sql/
|
|
|
|
ln -sf ../innodb/handler/ha_innodb.cc ../sql/
|
|
|
|
|
|
|
|
cd ../mysql-test/t
|
|
|
|
ln -sf ../../innodb/mysql-test/*.test ../../innodb/mysql-test/*.opt ./
|
|
|
|
ln -sf ../../innodb/mysql-test/*.result ../r/
|
|
|
|
ln -sf ../../innodb/mysql-test/*.inc ../include/
|