Commit 972a15bf authored by Rich Prohaska's avatar Rich Prohaska

add usage, remove unused vars, support --mysql

parent c276ee49
...@@ -162,3 +162,17 @@ function parse_mysqlbuild() { ...@@ -162,3 +162,17 @@ function parse_mysqlbuild() {
fi fi
test $exitcode = 0 test $exitcode = 0
} }
# split mysql into mysql_distro and mysql_version
function parse_mysql() {
local mysql=$1
if [[ $mysql =~ ^(mysql|mariadb)-(.*)$ ]] ; then
mysql_distro=${BASH_REMATCH[1]}
mysql_version=${BASH_REMATCH[2]}
if [[ $mysql_distro = mysql && $mysql_version =~ ^5.6 ]] ; then mysql_distro=mysql56; fi
exitcode=0
else
exitcode=1
fi
test $exitcode = 0
}
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
set -e set -e
set -u set -u
function usage() {
echo "--mysqlbuild=$mysqlbuild"
echo "--mysql=$mysql"
return 1
}
pushd $(dirname $0) pushd $(dirname $0)
source ./common.sh source ./common.sh
popd popd
...@@ -15,11 +21,7 @@ makejobs=$(get_ncpus) ...@@ -15,11 +21,7 @@ makejobs=$(get_ncpus)
git_tag=HEAD git_tag=HEAD
mysqlbuild= mysqlbuild=
mysql=mysql-5.5.30 mysql=
do_s3=0
s3_build_bucket=tokutek-mysql-build
s3_release_bucket=tokutek-mysql
do_make_check=0
cc=gcc47 cc=gcc47
cxx=g++47 cxx=g++47
build_debug=0 build_debug=0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment