Commit 7241741f authored by Rich Prohaska's avatar Rich Prohaska

build 5.5 and 5.6 in the same build directory

parent 05927abf
......@@ -97,10 +97,11 @@ fi
# download all the mysql source
if [ ! -d $mysql_distro ] ; then
github_download Tokutek/$mysql_repo $(git_tree $git_tag $mysql_tree) $mysql_distro
github_download Tokutek/$mysql_repo $(git_tree $git_tag $mysql_tree) $mysql_distro-$mysql_version
fi
cd $mysql_distro
cd $mysql_distro-$mysql_version
if [ $? != 0 ] ; then exit 1; fi
# install the backup source
if [ ! -d toku_backup ] ; then
......@@ -128,7 +129,9 @@ if [ ! -d storage/tokudb/ft-index ] ; then
github_download Tokutek/ft-index $(git_tree $git_tag $ftindex_tree) storage/tokudb/ft-index
fi
if [ ! -d storage/tokudb/ft-index/third_party/jemalloc ] ; then
if [[ $mysql_distro =~ ^mariadb ]] ; then
github_download Tokutek/jemalloc $(git_tree $git_tag $jemalloc_tree) extra/jemalloc
elif [ ! -d storage/tokudb/ft-index/third_party/jemalloc ] ; then
github_download Tokutek/jemalloc $(git_tree $git_tag $jemalloc_tree) storage/tokudb/ft-index/third_party/jemalloc
fi
......
......@@ -12,7 +12,7 @@ function copy_to_s3() {
local ts=$(date +%s)
local ymd=$(date +%Y%m%d -d @$ts)
local exitcode=0; local r=0
for f in $(find . -maxdepth 1 \( -name $mysql_distro'*.tar.gz*' -o -name $mysql_distro'*.rpm*' \) ) ; do
for f in $(find . -maxdepth 1 \( -name $mysql_distro-$mysql_version'*.tar.gz*' -o -name $mysql_distro-$mysql_version'*.rpm*' \) ) ; do
f=$(basename $f)
echo `date` s3put $s3_build_bucket $f
s3put $s3_build_bucket $f $f
......@@ -30,7 +30,7 @@ function copy_to_s3() {
if [ $r != 0 ] ; then
exitcode=1
else
for f in $(find . -maxdepth 1 \( -name $mysql_distro'*.tar.gz*' -o -name $mysql_distro'*.rpm*' \) ) ; do
for f in $(find . -maxdepth 1 \( -name $mysql_distro-$mysql_version'*.tar.gz*' -o -name $mysql_distro-$mysql_version'*.rpm*' \) ) ; do
f=$(basename $f)
echo `date` s3copykey $git_tag $f
s3copykey $git_tag $f $s3_build_bucket $f
......@@ -85,7 +85,7 @@ bash -x $HOME/github/ft-engine/scripts/make.mysql.bash $make_args
if [ $? != 0 ] ; then exitcode=1; fi
# generate md5 sums
for f in $(find $mysql_distro/build.* -maxdepth 1 \( -name '*.tar.gz' -o -name '*.rpm' \) ) ; do
for f in $(find $mysql_distro-$mysql_version/build.* -maxdepth 1 \( -name '*.tar.gz' -o -name '*.rpm' \) ) ; do
newf=$(basename $f)
ln $f $newf
if [ $? != 0 ] ; then exitcode=1; fi
......
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