Merge pull request #5850 from ethereum/ppaScript

Some improvements to the ppa release script.
This commit is contained in:
chriseth 2019-01-24 13:32:11 +01:00 committed by GitHub
commit 116773685c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,14 @@ packagename=solc
static_build_distribution=cosmic static_build_distribution=cosmic
for distribution in bionic cosmic STATIC DISTRIBUTIONS="bionic cosmic disco"
if [ branch != develop ]
then
DISTRIBUTIONS="$DISTRIBUTIONS STATIC"
fi
for distribution in $DISTRIBUTIONS
do do
cd /tmp/ cd /tmp/
rm -rf $distribution 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 echo "$commithash" > commit_hash.txt
if [ $branch = develop ] if [ $branch = develop ]
then then
debversion="$version-develop-$commitdate-$commithash" debversion="$version~develop-$commitdate-$commithash"
else else
debversion="$version" debversion="$version"
echo -n > prerelease.txt # proper release echo -n > prerelease.txt # proper release