diff options
author | Romain Bouvier <skunnyk@alteroot.org> | 2021-07-05 12:57:29 +0200 |
---|---|---|
committer | Romain Bouvier <skunnyk@alteroot.org> | 2021-07-05 12:58:21 +0200 |
commit | 47ac35062ff081d904aa140373fe42ddb8e54c9b (patch) | |
tree | ec47704a5e95bd8082cdf5709ab5fa659f6f6cb1 | |
parent | 2266437dc8afad8d2bb60516d92dc636402de6c7 (diff) | |
download | xfce4-dev-tools-47ac35062ff081d904aa140373fe42ddb8e54c9b.tar.gz |
Try to build higher version available tag
- If 4.17.x is available, pick this one
- If 4.16.x is the higher (on component without 4.17 yet), pick it
- "grep" the component name to remove any "xfce-" release tags
- Enhance MR!49
-rw-r--r-- | ci/build_libs.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ci/build_libs.sh b/ci/build_libs.sh index ab390e1..a4953ea 100644 --- a/ci/build_libs.sh +++ b/ci/build_libs.sh @@ -3,7 +3,6 @@ set -euo pipefail XFCE_BASE=https://gitlab.xfce.org -RELEASE=xfce-4.16 : ${libdir:="/usr/lib/x86_64-linux-gnu"} : ${libexecdir:="/usr/lib/x86_64-linux-gnu"} @@ -35,8 +34,8 @@ for URL in ${REPOS}; do cd /git git clone $URL cd $NAME - git checkout $RELEASE - TAG=$(git describe --abbrev=0 --match "$NAME*" 2>/dev/null) + # We build higher version possible tag, whatever branch it comes from + TAG=$(git tag --sort=version:refname | grep "$NAME-" | tail -1) echo "--- Building $NAME ($TAG) ---" git checkout -b build-$TAG $TAG ./autogen.sh $AUTOGEN_OPTIONS |