Commit 4a2b3220 authored by Rich Prohaska's avatar Rich Prohaska

allow tarball and/or rpm builds

parent 6a7b5c31
...@@ -176,8 +176,10 @@ function generate_cmake_cmd () { ...@@ -176,8 +176,10 @@ function generate_cmake_cmd () {
echo -n " " \ echo -n " " \
-D COMPILATION_COMMENT=\"TokuDB Enterprise Server \(GPL\)\" -D COMPILATION_COMMENT=\"TokuDB Enterprise Server \(GPL\)\"
fi fi
}
if [ $system = linux -a $build_rpm != 0 -a $mysql_distro = mariadb ] ; then function generate_cmake_cmd_rpm() {
if [ $system = linux -a $mysql_distro = mariadb ] ; then
linux_distro=linux linux_distro=linux
if [ -f /etc/issue ] ; then if [ -f /etc/issue ] ; then
if [[ "$(head -1 /etc/issue)" =~ "Red Hat Enterprise Linux Server release ([56])" ]] ; then if [[ "$(head -1 /etc/issue)" =~ "Red Hat Enterprise Linux Server release ([56])" ]] ; then
...@@ -188,17 +190,30 @@ function generate_cmake_cmd () { ...@@ -188,17 +190,30 @@ function generate_cmake_cmd () {
fi fi
fi fi
echo -n " " -D RPM=$linux_distro echo -n " " -D RPM=$linux_distro
elif [ $system = linux -a $mysql_distro != mariadb ] ; then
echo 1>&2 "I don't know how to build rpms for mysql yet."
exit 1
fi fi
} }
mkdir -p build.$cmake_build_type if [ $build_tgz != 0 ] ; then
cd build.$cmake_build_type
mkdir -p build.$cmake_build_type
pushd build.$cmake_build_type
# actually build
eval $(generate_cmake_cmd) ..
make package -j$makejobs
popd
fi
if [ $build_tgz != 0 ] ; then
# actually build mkdir -p build.rpm.$cmake_build_type
eval $(generate_cmake_cmd) .. pushd build.rpm.$cmake_build_type
make package -j$makejobs
if [ $system = linux -a $build_rpm != 0 -a $mysql_distro != mariadb ] ; then # actually build
echo 1>&2 "I don't know how to build rpms for mysql yet." eval $(generate_cmake_cmd; generate_cmake_cmd_rpm) ..
exit 1 make package -j$makejobs
popd
fi 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