]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Ignore android-* tags when using `git describe` android-2.3.3-1
authorTobias Brunner <tobias@strongswan.org>
Wed, 14 Jul 2021 08:27:11 +0000 (10:27 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 14 Jul 2021 08:31:52 +0000 (10:31 +0200)
scripts/git-version
scripts/test.sh
testing/scripts/build-strongswan

index f92d0718f46663d55b1cfd2830551fd3e8ab5eba..86e413c0e09f17065025c21574c11630ac9527d3 100755 (executable)
@@ -6,7 +6,7 @@ TARBALL=$SRCDIR/.tarball-git-version
 if test -f $TARBALL; then
        V=$(cat $TARBALL)
 elif test -d $SRCDIR/.git; then
-       V=$(git -C $SRCDIR describe --tags HEAD 2>/dev/null)
+       V=$(git -C $SRCDIR describe --exclude 'android-*' --tags HEAD 2>/dev/null)
 fi
 
 if test -z "$V"; then
index 915b12d9b0f32b6cf4d8c7642bd1097cf548e637..1c0efd6d7c1ced4700401dca6abd98732a8ac0f3 100755 (executable)
@@ -468,7 +468,7 @@ sonarcloud)
                -Dsonar.projectKey=${SONAR_PROJECT} \
                -Dsonar.organization=${SONAR_ORGANIZATION} \
                -Dsonar.login=${SONAR_TOKEN} \
-               -Dsonar.projectVersion=$(git describe)+${BUILD_NUMBER} \
+               -Dsonar.projectVersion=$(git describe --exclude 'android-*')+${BUILD_NUMBER} \
                -Dsonar.sources=. \
                -Dsonar.cfamily.threads=2 \
                -Dsonar.cfamily.cache.enabled=true \
index bfc172777341cf2162cad0848e728406f7f802fb..4b2de3ffcbdfb91650840cf313365d1670b7f356 100755 (executable)
@@ -143,7 +143,7 @@ if [ -z "$TARBALL" ]; then
        do_on_exit umount $LOOPDIR/root/strongswan
 
        log_action "Determine strongSwan version"
-       desc=`git -C $SWANDIR describe --dirty`
+       desc=`git -C $SWANDIR describe --exclude 'android-*' --dirty`
        if [ $? -eq 0 ]; then
                version="$desc (`git -C $SWANDIR rev-parse --abbrev-ref HEAD`)"
        else