Commit dc083f58 authored by Rich Prohaska's avatar Rich Prohaska

build mysql from tag, branch, or HEAD

parent a028e2d0
...@@ -70,6 +70,7 @@ function github_download() { ...@@ -70,6 +70,7 @@ function github_download() {
$rev) | \ $rev) | \
tar --extract \ tar --extract \
--directory $dest --directory $dest
if [ $? != 0 ] ; then exit 1; fi
rm -rf $tempdir rm -rf $tempdir
fi fi
...@@ -122,8 +123,6 @@ function build_fractal_tree() { ...@@ -122,8 +123,6 @@ function build_fractal_tree() {
pushd ft-index pushd ft-index
if [ $? != 0 ] ; then exit 1; fi if [ $? != 0 ] ; then exit 1; fi
echo `date` make $tokudb $cc $($cc --version)
local ft_build_type="" local ft_build_type=""
local use_valgrind="" local use_valgrind=""
local debug_paranoid="" local debug_paranoid=""
...@@ -522,16 +521,14 @@ function build_mysql_release() { ...@@ -522,16 +521,14 @@ function build_mysql_release() {
PATH=$HOME/bin:$PATH PATH=$HOME/bin:$PATH
git_server=git@github.com git_server=git@github.com
git_tag= git_tag=HEAD
mysql=mysql-5.5.30 mysql=mysql-5.5.30
tokudb=tokudb
do_s3=1 do_s3=1
do_make_check=1 do_make_check=1
cc=gcc47 cc=gcc47
cxx=g++47 cxx=g++47
system=`uname -s | tr '[:upper:]' '[:lower:]'` system=`uname -s | tr '[:upper:]' '[:lower:]'`
arch=`uname -m | tr '[:upper:]' '[:lower:]'` arch=`uname -m | tr '[:upper:]' '[:lower:]'`
svnserver=https://svn.tokutek.com/tokudb
makejobs=$(get_ncpus) makejobs=$(get_ncpus)
build_debug=0 build_debug=0
build_type=community build_type=community
...@@ -551,19 +548,20 @@ while [ $# -gt 0 ] ; do ...@@ -551,19 +548,20 @@ while [ $# -gt 0 ] ; do
fi fi
done done
if [ -z $git_tag ] ; then exit 1; fi
# set tokudb version # set tokudb version
if [[ $git_tag =~ tokudb-(.*) ]] ; then if [ $git_tag = HEAD ] ; then
tokudb_version=$(date +%s)
elif [[ $git_tag =~ tokudb-(.*) ]] ; then
tokudb_version=${BASH_REMATCH[1]} tokudb_version=${BASH_REMATCH[1]}
else else
tokudb_version=$git_tag tokudb_version=$git_tag
git_tag=HEAD
fi fi
if [ $build_debug != 0 ] ; then if [ $build_debug != 0 ] ; then
if [ $cmake_build_type = RelWithDebInfo ] ; then cmake_build_type=Debug; fi if [ $cmake_build_type = RelWithDebInfo ] ; then cmake_build_type=Debug; fi
tokudb_version=$tokudb_version-debug tokudb_version=$tokudb_version-debug
fi fi
if [ $build_type == enterprise ] ; then if [ $build_type = enterprise ] ; then
tokudb_version=$tokudb_version-e tokudb_version=$tokudb_version-e
fi fi
...@@ -576,7 +574,7 @@ else ...@@ -576,7 +574,7 @@ else
fi fi
# set build dir # set build dir
builddir=build-$tokudb-$tokudb_version builddir=build-tokudb-$tokudb_version
if [ ! -d $builddir ] ; then mkdir $builddir; fi if [ ! -d $builddir ] ; then mkdir $builddir; fi
pushd $builddir pushd $builddir
...@@ -615,7 +613,7 @@ if [ $do_s3 != 0 ] ; then ...@@ -615,7 +613,7 @@ if [ $do_s3 != 0 ] ; then
exitcode=$? exitcode=$?
echo `date` s3put tokutek-mysql-build-date $d/$f $exitcode echo `date` s3put tokutek-mysql-build-date $d/$f $exitcode
done done
if [ ! -z $git_tag ] ; then if [[ $git_tag =~ tokudb-.* ]] ; then
s3mkbucket tokutek-mysql-$git_tag s3mkbucket tokutek-mysql-$git_tag
if [ $? = 0 ] ; then if [ $? = 0 ] ; then
files=$(ls $tokufractaltreedir.tar.gz* $mysqldir.tar.gz* $mysqlsrc.tar.gz* *.rpm*) files=$(ls $tokufractaltreedir.tar.gz* $mysqldir.tar.gz* $mysqlsrc.tar.gz* *.rpm*)
......
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