mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
72ccc69212
* Allow use external re2 with re2_st=re2 * fix * remove dupe * use re2_st in FunctionsStringSearch.h * fix * move files from tools/etc to debian * dont generate control * version * ok. * wip * Cmake: dont touch CMAKE_INSTALL_PREFIX * wip * works! * clean * okay * like old * wip * wip * okay * clickhouse-server-base-dbg * clean * clickhouse-server-dbg * Debian: Remove daemons * Update rules * add source/format * control clean * add watch * clean * clean * temp fix build * clean * docs * fake make_control * fix * testme * testme * add metrika package * fake metrika files
60 lines
1.3 KiB
Bash
Executable File
60 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/release_lib.sh"
|
|
|
|
CONTROL=debian/control
|
|
CHLOG=debian/changelog
|
|
CHDATE=$(LC_ALL=C date -R | sed -e 's/,/\\,/g') # Replace comma to '\,'
|
|
|
|
# Build a package with configuration files for Yandex.Metrika.
|
|
BUILD_PACKAGE_FOR_METRIKA=$([ -f 'private/Server/metrika/config.xml' ] && echo 'yes')
|
|
|
|
while [[ $1 == --* ]]
|
|
do
|
|
# Don't sign packages, don't upload, don't create tags.
|
|
if [[ $1 == '--standalone' ]]
|
|
then
|
|
STANDALONE='yes'
|
|
DEBUILD_NOSIGN_OPTIONS="-us -uc"
|
|
shift
|
|
elif [[ $1 == '--test' ]]
|
|
then
|
|
STANDALONE='yes'
|
|
TEST='yes'
|
|
DEBUILD_NOSIGN_OPTIONS="-us -uc"
|
|
shift
|
|
elif [[ $1 == '--ignore-deps' ]]
|
|
then
|
|
DEBUILD_NODEPS_OPTIONS="-d"
|
|
shift
|
|
elif [[ $1 == '--version' ]]
|
|
then
|
|
gen_revision_author
|
|
git push
|
|
exit 0
|
|
else
|
|
echo "Unknown option $1"
|
|
exit 2
|
|
fi
|
|
done
|
|
|
|
if [[ $TEST != 'yes' ]]
|
|
then
|
|
# now incrementing done in external release scripts via --version
|
|
get_revision_author
|
|
else
|
|
REVISION=99999
|
|
fi
|
|
|
|
echo -e "\nCurrent revision is $REVISION"
|
|
|
|
gen_changelog "$REVISION" "$CHDATE" "$AUTHOR" "$CHLOG"
|
|
|
|
# Build (only binary packages).
|
|
debuild -eDEB_BUILD_OPTIONS=parallel=`nproc || grep -c ^processor /proc/cpuinfo` -e DEB_CC -e DEB_CXX -e CMAKE_FLAGS_ADD -b ${DEBUILD_NOSIGN_OPTIONS} ${DEBUILD_NODEPS_OPTIONS}
|
|
|
|
if [[ $STANDALONE != 'yes' ]]
|
|
then
|
|
upload_debs "$REVISION"
|
|
fi
|