mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
add usage, remove unused vars, support --mysql
This commit is contained in:
parent
c276ee4986
commit
972a15bfbe
2 changed files with 21 additions and 5 deletions
|
@ -162,3 +162,17 @@ function parse_mysqlbuild() {
|
|||
fi
|
||||
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
|
||||
}
|
||||
|
|
12
scripts/make.mysql.new.bash
Normal file → Executable file
12
scripts/make.mysql.new.bash
Normal file → Executable file
|
@ -3,6 +3,12 @@
|
|||
set -e
|
||||
set -u
|
||||
|
||||
function usage() {
|
||||
echo "--mysqlbuild=$mysqlbuild"
|
||||
echo "--mysql=$mysql"
|
||||
return 1
|
||||
}
|
||||
|
||||
pushd $(dirname $0)
|
||||
source ./common.sh
|
||||
popd
|
||||
|
@ -15,11 +21,7 @@ makejobs=$(get_ncpus)
|
|||
|
||||
git_tag=HEAD
|
||||
mysqlbuild=
|
||||
mysql=mysql-5.5.30
|
||||
do_s3=0
|
||||
s3_build_bucket=tokutek-mysql-build
|
||||
s3_release_bucket=tokutek-mysql
|
||||
do_make_check=0
|
||||
mysql=
|
||||
cc=gcc47
|
||||
cxx=g++47
|
||||
build_debug=0
|
||||
|
|
Loading…
Add table
Reference in a new issue