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