summaryrefslogtreecommitdiff
path: root/scripts/mysql_install_db.sh
diff options
context:
space:
mode:
authordf@pippilotta.erinye.com <>2007-11-28 17:08:40 +0100
committerdf@pippilotta.erinye.com <>2007-11-28 17:08:40 +0100
commit8765858d8af189968d1bfbaeba02edfb5b70ecb5 (patch)
tree1d73ca3d301bf20ca4f0a67e9c59f01528196120 /scripts/mysql_install_db.sh
parent4f16ab2ea17f8250fcb6b0c85b590088e851cee9 (diff)
parent24b4226f1d6120b5af8bef88314062a9bd13d129 (diff)
downloadmariadb-git-8765858d8af189968d1bfbaeba02edfb5b70ecb5.tar.gz
Merge dfischer@bk-internal.mysql.com:/home/bk/mysql-5.1-build
into pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
Diffstat (limited to 'scripts/mysql_install_db.sh')
-rw-r--r--scripts/mysql_install_db.sh34
1 files changed, 19 insertions, 15 deletions
diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh
index 0a816cef493..5fbbebed195 100644
--- a/scripts/mysql_install_db.sh
+++ b/scripts/mysql_install_db.sh
@@ -189,12 +189,12 @@ parse_arguments PICK-ARGS-FROM-ARGV "$@"
#
# or default to compiled-in locations.
#
-if test -n "$srcdir"
-then
- print_defaults="$srcdir/extra/my_print_defaults"
-elif test -n "$basedir"
+if test -n "$basedir"
then
print_defaults=`find_in_basedir my_print_defaults bin extra`
+elif test -n "$srcdir"
+then
+ print_defaults="$srcdir/extra/my_print_defaults"
else
print_defaults="@bindir@/my_print_defaults"
fi
@@ -211,22 +211,19 @@ parse_arguments `$print_defaults $defaults mysqld mysql_install_db`
parse_arguments PICK-ARGS-FROM-ARGV "$@"
# Configure paths to support files
-if test -n "$srcdir"
-then
- basedir="$srcdir"
- bindir="$srcdir/client"
- extra_bindir="$srcdir/extra"
- mysqld="$srcdir/sql/mysqld"
- mysqld_opt="--language=$srcdir/sql/share/english"
- pkgdatadir="$srcdir/scripts"
- scriptdir="$srcdir/scripts"
-elif test -n "$basedir"
+if test -n "$basedir"
then
bindir="$basedir/bin"
extra_bindir="$bindir"
- mysqld=`find_in_basedir mysqld libexec sbin bin`
+ mysqld=`find_in_basedir mysqld libexec sbin bin sql`
pkgdatadir=`find_in_basedir --dir fill_help_tables.sql share share/mysql`
scriptdir="$basedir/scripts"
+elif test -n "$srcdir"
+then
+ basedir="$srcdir"
+ bindir="$srcdir/client"
+ extra_bindir="$srcdir/extra"
+ mysqld="$srcdir/sql/mysqld"
else
basedir="@prefix@"
bindir="@bindir@"
@@ -236,6 +233,13 @@ else
scriptdir="@scriptdir@"
fi
+if test -n "$srcdir"
+then
+ mysqld_opt="--language=$srcdir/sql/share/english"
+ pkgdatadir="$srcdir/scripts"
+ scriptdir="$srcdir/scripts"
+fi
+
# Set up paths to SQL scripts required for bootstrap
fill_help_tables="$pkgdatadir/fill_help_tables.sql"
create_system_tables="$pkgdatadir/mysql_system_tables.sql"