summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <kent@mysql.com/kent-amd64.(none)>2007-10-01 18:41:38 +0200
committerunknown <kent@mysql.com/kent-amd64.(none)>2007-10-01 18:41:38 +0200
commitebc5495f6542c70df324ee7033d9d3e9771ff92b (patch)
treec38b71fd1adf54937bace61b2d8eefdbc9410dc7 /scripts
parent3e95b39882ba06e0d165027b9b08c210241bc531 (diff)
downloadmariadb-git-ebc5495f6542c70df324ee7033d9d3e9771ff92b.tar.gz
make_binary_distribution.sh:
Added special handling of "mysql_install_db" and "mysql.server" scripts, find executables relative to the current directory. scripts/make_binary_distribution.sh: Added special handling of "mysql_install_db" and "mysql.server" scripts, find executables relative to the current directory.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/make_binary_distribution.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh
index 4d027659227..8d3e2133a45 100644
--- a/scripts/make_binary_distribution.sh
+++ b/scripts/make_binary_distribution.sh
@@ -168,6 +168,35 @@ if [ x"$BASE_SYSTEM" != x"netware" ] ; then
set -e
# ----------------------------------------------------------------------
+ # Really ugly, one script, "mysql_install_db", needs prefix set to ".",
+ # i.e. makes access relative the current directory. This matches
+ # the documentation, so better not change this. And for another script,
+ # "mysql.server", we make some relative, others not.
+ # ----------------------------------------------------------------------
+
+ cd scripts
+ rm -f mysql_install_db
+ @MAKE@ mysql_install_db \
+ prefix=. \
+ bindir=./bin \
+ sbindir=./bin \
+ scriptdir=./bin \
+ libexecdir=./bin \
+ pkgdatadir=./share \
+ localstatedir=./data
+ cd ..
+
+ cd support-files
+ rm -f mysql.server
+ @MAKE@ mysql.server \
+ bindir=./bin \
+ sbindir=./bin \
+ scriptdir=./bin \
+ libexecdir=./bin \
+ pkgdatadir=@pkgdatadir@
+ cd ..
+
+ # ----------------------------------------------------------------------
# Do a install that we later are to pack. Use the same paths as in
# the build for the relevant directories.
# ----------------------------------------------------------------------