mariadb/setup.sh

46 lines
910 B
Bash
Raw Normal View History

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"
# link the build scripts
ln -sf ../innodb/compile-innodb{,-debug} ../BUILD
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
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
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/