summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authoreric@mysql.com <>2005-09-16 18:10:36 -0700
committereric@mysql.com <>2005-09-16 18:10:36 -0700
commit5c0255457364d5446a180f11cc0907a0d9257182 (patch)
treed906c588802468feddfbcdf4588bc03f6627ae81 /BUILD
parenta4aa8fb9b23df986a492f4369fbd3e5c11750519 (diff)
downloadmariadb-git-5c0255457364d5446a180f11cc0907a0d9257182.tar.gz
Brian's "he is too lazy to commit this so Eric is going to have to do it" environmental variable hack for prefix. This allows you to just set a prefix in your profile which will be used in all of your builds. AKA you can be even lazier(!) about calling BUILD scripts. Don't blame Eric, Brian borrowed his keyboard.
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/SETUP.sh5
-rwxr-xr-xBUILD/autorun.sh2
2 files changed, 6 insertions, 1 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 1603cfadbed..1bf3bad5abe 100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -10,6 +10,11 @@ prefix_configs="--prefix=/usr/local/mysql"
just_print=
just_configure=
full_debug=
+if test -n $MYSQL_BUILD_PREFIX
+then
+ prefix_configs="--prefix=$MYSQL_BUILD_PREFIX"
+fi
+
while test $# -gt 0
do
case "$1" in
diff --git a/BUILD/autorun.sh b/BUILD/autorun.sh
index 47a80a709a8..f5986720b48 100755
--- a/BUILD/autorun.sh
+++ b/BUILD/autorun.sh
@@ -7,7 +7,7 @@ aclocal || die "Can't execute aclocal"
autoheader || die "Can't execute autoheader"
# --force means overwrite ltmain.sh script if it already exists
# Added glibtoolize reference to make native OSX autotools work
-if [ -f /usr/bin/glibtoolize ] ; then
+if test -f /usr/bin/glibtoolize ; then
glibtoolize --automake --force || die "Can't execute glibtoolize"
else
libtoolize --automake --force || die "Can't execute libtoolize"