Removed useless code [#METR-20000].

This commit is contained in:
Alexey Milovidov 2016-06-10 17:42:05 +03:00
parent 14fd7474e4
commit 96b244ce3a
2 changed files with 27 additions and 34 deletions

34
release
View File

@ -9,13 +9,25 @@ CHDATE=$(LC_ALL=C date -R | sed -e 's/,/\\,/g') # Заменим запятую
# Собирать пакет с конфигурационными файлами для Яндекс.Метрики.
BUILD_PACKAGE_FOR_METRIKA=$([ -f 'private/Server/metrika/config.xml' ] && echo 'yes')
# Don't sign packages, don't upload, don't create tags.
if [[ $1 == '--standalone' ]]
then
STANDALONE='yes'
DEBUILD_NOSIGN_OPTIONS="-us -uc"
shift
fi
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
else
echo "Unknown option $1"
exit 2
fi
done
# Список демонов для сборки может быть указан в аргументах командной строки.
if [ $# -gt 0 ]
@ -25,7 +37,13 @@ else
DAEMONS="$(echo `cat debian/daemons`)"
fi
gen_revision_author
if [[ $TEST != 'yes' ]]
then
gen_revision_author
else
REVISION=99999
fi
echo -e "\nCurrent revision is $REVISION"
make_control "$CONTROL" "$DAEMONS"

View File

@ -1,28 +1,3 @@
#!/bin/bash -ex
source release_lib.sh
CONTROL=debian/control
CHLOG=debian/changelog
CHDATE=$(LC_ALL=C date -R | sed -e 's/,/\\,/g') # Заменим запятую на '\,'
# Собирать пакет с конфигурационными файлами для Яндекс.Метрики.
BUILD_PACKAGE_FOR_METRIKA=$([ -f 'private/Server/metrika/config.xml' ] && echo 'yes')
# Список демонов для сборки может быть указан в аргументах командной строки.
if [ $# -gt 0 ]
then
DAEMONS="$@"
else
DAEMONS="$(echo `cat debian/daemons`)"
fi
REVISION="99999"
echo -e "\nCurrent revision is $REVISION"
make_control "$CONTROL" "$DAEMONS"
gen_changelog "$REVISION" "$CHDATE" "$AUTHOR" "$CHLOG" "$DAEMONS"
# Сборка (только бинарных пакетов).
debuild -e THREADS_COUNT=7 -e DAEMONS="${DAEMONS}" -b -uc -us
./release --test $@