Some improvements to the ppa release script.

This commit is contained in:
chriseth 2019-01-22 18:22:54 +01:00
parent 26c06550b0
commit 0a3beb72f2

View File

@ -53,7 +53,14 @@ packagename=solc
static_build_distribution=cosmic
for distribution in bionic cosmic STATIC
DISTRIBUTIONS="bionic cosmic"
if [ branch != develop ]
then
DISTRIBUTIONS="$DISTRIBUTIONS STATIC"
fi
for distribution in $DISTRIBUTIONS
do
cd /tmp/
rm -rf $distribution
@ -96,7 +103,7 @@ commitdate=$(git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-
echo "$commithash" > commit_hash.txt
if [ $branch = develop ]
then
debversion="$version-develop-$commitdate-$commithash"
debversion="$version~develop-$commitdate-$commithash"
else
debversion="$version"
echo -n > prerelease.txt # proper release