diff options
author | eric@mysql.com <> | 2005-09-16 18:10:36 -0700 |
---|---|---|
committer | eric@mysql.com <> | 2005-09-16 18:10:36 -0700 |
commit | 5c0255457364d5446a180f11cc0907a0d9257182 (patch) | |
tree | d906c588802468feddfbcdf4588bc03f6627ae81 /BUILD | |
parent | a4aa8fb9b23df986a492f4369fbd3e5c11750519 (diff) | |
download | mariadb-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-x | BUILD/SETUP.sh | 5 | ||||
-rwxr-xr-x | BUILD/autorun.sh | 2 |
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" |