mirror of
https://github.com/MariaDB/server.git
synced 2025-10-28 17:15:19 +03:00
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint BitKeeper/etc/ignore: auto-union mysql-test/mysql-test-run.pl: Auto merged netware/Makefile.am: Auto merged scripts/make_binary_distribution.sh: Auto merged sql/mysql_priv.h: Auto merged tests/Makefile.am: Auto merged mysql-test/install_test_db.sh: Manual merge sql/sql_acl.h: Manual merge
This commit is contained in:
@@ -22,7 +22,7 @@ if [ x$1 = x"--bin" ]; then
|
||||
BINARY_DIST=1
|
||||
|
||||
bindir=../bin
|
||||
scriptdir=../bin
|
||||
scriptdir=bin
|
||||
libexecdir=../libexec
|
||||
|
||||
# Check if it's a binary distribution or a 'make install'
|
||||
@@ -33,7 +33,7 @@ if [ x$1 = x"--bin" ]; then
|
||||
then
|
||||
execdir=../../sbin
|
||||
bindir=../../bin
|
||||
scriptdir=../../bin
|
||||
scriptdir=../bin
|
||||
libexecdir=../../libexec
|
||||
else
|
||||
execdir=../bin
|
||||
@@ -43,7 +43,7 @@ else
|
||||
execdir=../sql
|
||||
bindir=../client
|
||||
fix_bin=.
|
||||
scriptdir=../scripts
|
||||
scriptdir=scripts
|
||||
libexecdir=../libexec
|
||||
fi
|
||||
|
||||
@@ -99,15 +99,13 @@ if [ x$BINARY_DIST = x1 ] ; then
|
||||
basedir=..
|
||||
else
|
||||
basedir=.
|
||||
EXTRA_ARG="--language=../sql/share/english/ --character-sets-dir=../sql/share/charsets/"
|
||||
EXTRA_ARG="--windows"
|
||||
fi
|
||||
|
||||
mysqld_boot="${MYSQLD_BOOTSTRAP-$mysqld}"
|
||||
|
||||
mysqld_boot="$mysqld_boot --no-defaults --bootstrap --skip-grant-tables --basedir=$basedir --datadir=$ldata --skip-innodb --skip-ndbcluster --tmpdir=. $EXTRA_ARG"
|
||||
echo "running $mysqld_boot"
|
||||
|
||||
if $scriptdir/mysql_create_system_tables test $mdata $hostname | $mysqld_boot
|
||||
INSTALL_CMD="$scriptdir/mysql_install_db --no-defaults $EXTRA_ARG --basedir=$basedir --datadir=mysql-test/$ldata --srcdir=."
|
||||
echo "running $INSTALL_CMD"
|
||||
cd ..
|
||||
if $INSTALL_CMD
|
||||
then
|
||||
exit 0
|
||||
else
|
||||
|
||||
@@ -1495,9 +1495,17 @@ sub executable_setup () {
|
||||
|
||||
if (!$opt_extern)
|
||||
{
|
||||
# Look for SQL scripts directory
|
||||
$path_sql_dir= mtr_path_exists("$glob_basedir/share",
|
||||
"$glob_basedir/scripts");
|
||||
# Look for SQL scripts directory
|
||||
if ( mtr_file_exists("$path_share/mysql_system_tables.sql") ne "")
|
||||
{
|
||||
# The SQL scripts are in path_share
|
||||
$path_sql_dir= $path_share;
|
||||
}
|
||||
else
|
||||
{
|
||||
$path_sql_dir= mtr_path_exists("$glob_basedir/share",
|
||||
"$glob_basedir/scripts");
|
||||
}
|
||||
|
||||
if ( $mysql_version_id >= 50100 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user