[beast] TRAVIS: use complete version information for bintray package versions



commit 57b119cbe34d36631955e1f1cf5d334e8da2681c
Author: Tim Janik <timj gnu org>
Date:   Sun Mar 27 01:54:48 2016 +0100

    TRAVIS: use complete version information for bintray package versions
    
    This avoids version clashes when uploading packages build for different
    distributions to bintray.com.
    
    Signed-off-by: Tim Janik <timj gnu org>

 buildtool.sh |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/buildtool.sh b/buildtool.sh
index eb33007..cc35a33 100755
--- a/buildtool.sh
+++ b/buildtool.sh
@@ -42,6 +42,8 @@ mkconfig() # print shell variables describing package, version, commit id, monot
   REVISIONSUFFIX="-${REVISIONSUFFIX:-0.1local}" # avoid non-native-package-with-native-version
   test -z "$TRAVIS_JOB_NUMBER" || REVISIONSUFFIX="$REVISIONSUFFIX~travis${TRAVIS_JOB_NUMBER/*./}"
   BUILDREV="$REVISIONSUFFIX"
+  # complate deb package versioning
+  DEBVERSION="$UPSVERSION$UPSDETAIL$BUILDREV"
   # print variables after all errors have been checked for
   cat <<-__EOF
        PACKAGE=$PACKAGE
@@ -52,7 +54,7 @@ mkconfig() # print shell variables describing package, version, commit id, monot
        TOTAL_COMMITS=$TOTAL_COMMITS
        COMMITID=$COMMITID
        CHANGELOGMSG="$CHANGELOGMSG"
-       DEBVERSION=$UPSVERSION$UPSDETAIL$BUILDREV
+       DEBVERSION=$DEBVERSION
        __EOF
   popd >/dev/null                                      # cd OLDPWD
 }
@@ -68,7 +70,7 @@ bintrayup() # Usage: bintrayup <bintrayaccount> <packagepath> <packagedistributi
   test -n "$PKGDIST" || die 1 "missing distribution"
   shift 3
   # create new bintray versoin
-  REPOVERSION="$UPSVERSION$UPSDETAIL" # echo "REPOVERSION=$REPOVERSION"
+  REPOVERSION="$DEBVERSION" # echo "REPOVERSION=$REPOVERSION"
   echo "  REMOTE  " "creating new version: $REPOVERSION"
   curl -d "{ \"name\": \"$REPOVERSION\", \"released\": \"`date -I`\", \"desc\": \"Automatic CI Build\" }" \
     -u"$ACCNAME:$BINTRAY_APITOKEN" "https://api.bintray.com/packages/$ACCNAME/$PKGPATH/versions"; \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]