mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
Make storage/innobase the working directory of Subversion.
This commit is contained in:
parent
eba6d0713f
commit
2602c728be
1 changed files with 6 additions and 33 deletions
39
setup.sh
39
setup.sh
|
@ -3,43 +3,16 @@
|
|||
# Prepare the MySQL source code tree for building
|
||||
# with checked-out InnoDB Subversion directory.
|
||||
|
||||
# This script assumes that the MySQL tree is at .. and that . = ../innodb
|
||||
# This script assumes that the current directory is storage/innobase.
|
||||
|
||||
set -eu
|
||||
|
||||
TARGETDIR=../storage/innobase
|
||||
|
||||
rm -fr "$TARGETDIR"
|
||||
mkdir "$TARGETDIR"
|
||||
|
||||
# link the build scripts
|
||||
ln -sf ../innodb/compile-innodb{,-debug} ../BUILD
|
||||
ln -sf $TARGETDIR/compile-innodb{,-debug} ../../BUILD
|
||||
|
||||
# create the directories
|
||||
for dir in */
|
||||
do
|
||||
case "$dir" in
|
||||
mysql-test/) ;;
|
||||
*.svn*) ;;
|
||||
*to-mysql*) ;;
|
||||
*) mkdir "$TARGETDIR/$dir" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# create the symlinks to files
|
||||
cd "$TARGETDIR"
|
||||
for dir in */
|
||||
do
|
||||
cd "$dir"
|
||||
ln -s ../../../innodb/"$dir"* .
|
||||
cd ..
|
||||
done
|
||||
for file in plug.in Makefile.am CMakeLists.txt
|
||||
do
|
||||
ln -s ../../innodb/"$file" .
|
||||
done
|
||||
|
||||
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/
|
||||
cd ../../mysql-test
|
||||
ln -sf ../$TARGETDIR/mysql-test/*.test ../../innodb/mysql-test/*.opt t/
|
||||
ln -sf ../$TARGETDIR/mysql-test/*.result r/
|
||||
ln -sf ../$TARGETDIR/mysql-test/*.inc include/
|
||||
|
|
Loading…
Add table
Reference in a new issue