2016-02-07 20:02:44 +00:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
source release_lib.sh
|
|
|
|
|
|
|
|
|
|
CONTROL=debian/control
|
|
|
|
|
CHLOG=debian/changelog
|
|
|
|
|
CHDATE=$(LC_ALL=C date -R | sed -e 's/,/\\,/g') # Заменим запятую на '\,'
|
|
|
|
|
|
2016-03-02 20:30:56 +00:00
|
|
|
|
# Собирать пакет с конфигурационными файлами для Яндекс.Метрики.
|
|
|
|
|
BUILD_PACKAGE_FOR_METRIKA=$([ -f 'private/Server/metrika/config.xml' ] && echo 'yes')
|
|
|
|
|
|
2016-05-28 00:52:18 +00:00
|
|
|
|
# Don't sign packages, don't upload, don't create tags.
|
|
|
|
|
if [[ $1 == '--standalone' ]]
|
|
|
|
|
then
|
|
|
|
|
STANDALONE='yes'
|
|
|
|
|
DEBUILD_NOSIGN_OPTIONS="-us -uc"
|
|
|
|
|
shift
|
|
|
|
|
fi
|
|
|
|
|
|
2016-02-07 20:02:44 +00:00
|
|
|
|
# Список демонов для сборки может быть указан в аргументах командной строки.
|
|
|
|
|
if [ $# -gt 0 ]
|
|
|
|
|
then
|
|
|
|
|
DAEMONS="$@"
|
|
|
|
|
else
|
|
|
|
|
DAEMONS="$(echo `cat debian/daemons`)"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
gen_revision_author
|
|
|
|
|
echo -e "\nCurrent revision is $REVISION"
|
|
|
|
|
|
|
|
|
|
make_control "$CONTROL" "$DAEMONS"
|
|
|
|
|
|
|
|
|
|
gen_changelog "$REVISION" "$CHDATE" "$AUTHOR" "$CHLOG" "$DAEMONS"
|
|
|
|
|
|
|
|
|
|
# Сборка (только бинарных пакетов).
|
2016-05-28 00:52:18 +00:00
|
|
|
|
debuild -e DAEMONS="${DAEMONS}" -e DISABLE_MONGODB -e CC -e CXX -b ${DEBUILD_NOSIGN_OPTIONS}
|
2016-02-07 20:02:44 +00:00
|
|
|
|
|
2016-05-28 00:52:18 +00:00
|
|
|
|
if [[ $STANDALONE != 'yes' ]]
|
|
|
|
|
then
|
|
|
|
|
upload_debs "$REVISION" "$DAEMONS"
|
|
|
|
|
fi
|