diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-07 18:03:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-07 18:03:31 +0300 |
commit | fe0a3147a8050a987281beb4b5e1481b982c93bc (patch) | |
tree | 799fed1bf1567b709086a1cf2d2c1fa3caaa9a4e /plugins/Dbx_mdbx/src/libmdbx/package.sh | |
parent | dfbb53e55b6a537366182a134caccaf5f71569c8 (diff) |
merge with libmdbx 0.1
Diffstat (limited to 'plugins/Dbx_mdbx/src/libmdbx/package.sh')
-rw-r--r-- | plugins/Dbx_mdbx/src/libmdbx/package.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/Dbx_mdbx/src/libmdbx/package.sh b/plugins/Dbx_mdbx/src/libmdbx/package.sh new file mode 100644 index 0000000000..d7f9ab297a --- /dev/null +++ b/plugins/Dbx_mdbx/src/libmdbx/package.sh @@ -0,0 +1,25 @@ +#!/bin/bash +set -e + +CONFIG=$1 + +if [[ -z "${CONFIG}" ]]; then + CONFIG=Debug +fi + +DIRNAME=`dirname ${BASH_SOURCE[0]}` +DIRNAME=`readlink --canonicalize ${DIRNAME}` + +if [[ -r /opt/rh/devtoolset-6/enable ]]; then + source /opt/rh/devtoolset-6/enable +fi + +mkdir -p cmake-build-${CONFIG} +pushd cmake-build-${CONFIG} &> /dev/null +if [[ ! -r Makefile ]]; then + cmake .. -DCMAKE_BUILD_TYPE=${CONFIG} +fi +rm -f *.rpm +make -j8 package || exit 1 +rm -f *-Unspecified.rpm +popd &> /dev/null |