mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
release --pbuilder
This commit is contained in:
parent
7a813002aa
commit
e7856ebcbf
12
release
12
release
@ -34,6 +34,9 @@ do
|
|||||||
elif [[ $1 == '--head' ]]; then
|
elif [[ $1 == '--head' ]]; then
|
||||||
REVISION=`git rev-parse HEAD`
|
REVISION=`git rev-parse HEAD`
|
||||||
shift
|
shift
|
||||||
|
elif [[ $1 == '--pbuilder' ]]; then
|
||||||
|
USE_PBUILDER=1
|
||||||
|
shift
|
||||||
else
|
else
|
||||||
echo "Unknown option $1"
|
echo "Unknown option $1"
|
||||||
exit 2
|
exit 2
|
||||||
@ -63,13 +66,22 @@ if [ -z "$THREAD_COUNT" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
CMAKE_FLAGS+=" $LIBTCMALLOC_OPTS -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DUSE_EMBEDDED_COMPILER=1"
|
CMAKE_FLAGS+=" $LIBTCMALLOC_OPTS -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DUSE_EMBEDDED_COMPILER=1"
|
||||||
|
export CMAKE_FLAGS
|
||||||
|
|
||||||
REVISION+=$VERSION_POSTFIX
|
REVISION+=$VERSION_POSTFIX
|
||||||
echo -e "\nCurrent revision is $REVISION"
|
echo -e "\nCurrent revision is $REVISION"
|
||||||
|
|
||||||
gen_changelog "$REVISION" "" "$AUTHOR" ""
|
gen_changelog "$REVISION" "" "$AUTHOR" ""
|
||||||
|
|
||||||
|
if [ -z "$USE_PBUILDER" ] ; then
|
||||||
# Build (only binary packages).
|
# Build (only binary packages).
|
||||||
debuild -e PATH -e SSH_AUTH_SOCK -e DEB_BUILD_OPTIONS=parallel=$THREAD_COUNT \
|
debuild -e PATH -e SSH_AUTH_SOCK -e DEB_BUILD_OPTIONS=parallel=$THREAD_COUNT \
|
||||||
-e DEB_CC=$DEB_CC -e DEB_CXX=$DEB_CXX -e CMAKE_FLAGS="$CMAKE_FLAGS" \
|
-e DEB_CC=$DEB_CC -e DEB_CXX=$DEB_CXX -e CMAKE_FLAGS="$CMAKE_FLAGS" \
|
||||||
-b ${DEBUILD_NOSIGN_OPTIONS} ${DEBUILD_NODEPS_OPTIONS}
|
-b ${DEBUILD_NOSIGN_OPTIONS} ${DEBUILD_NODEPS_OPTIONS}
|
||||||
|
else
|
||||||
|
export DIST=artful
|
||||||
|
if [ -z "$NO_PBUILDER_CREATE" ] ; then
|
||||||
|
sudo --preserve-env pbuilder create --configfile debian/.pbuilderrc
|
||||||
|
fi
|
||||||
|
pdebuild --configfile debian/.pbuilderrc
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user