diff options
author | Nullptrderef <nullptrderef@proton.me> | 2024-06-16 11:49:58 +0200 |
---|---|---|
committer | Nullptrderef <nullptrderef@proton.me> | 2024-06-16 11:49:58 +0200 |
commit | 858c314332ab61b81702d5144ecd56252da8b5cc (patch) | |
tree | 1dcaa0197c1f665f56c051ba202ddbc57ffc5ef3 /contrib/ci/jobs/4-deb-package/version.sh | |
parent | 1dd236d07a9b1b926d64701723838d2cd954d9ca (diff) | |
download | exchange-858c314332ab61b81702d5144ecd56252da8b5cc.tar.xz |
arm64 and riscv64 builds
Diffstat (limited to 'contrib/ci/jobs/4-deb-package/version.sh')
-rwxr-xr-x | contrib/ci/jobs/4-deb-package/version.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/contrib/ci/jobs/4-deb-package/version.sh b/contrib/ci/jobs/4-deb-package/version.sh deleted file mode 100755 index 52031b23a..000000000 --- a/contrib/ci/jobs/4-deb-package/version.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -set -ex - -BRANCH=$(git name-rev --name-only HEAD) -if [ -z "${BRANCH}" ]; then - exit 1 -else - # "Unshallow" our checkout, but only our current branch, and exclude the submodules. - git fetch --no-recurse-submodules --tags --depth=1000 origin "${BRANCH}" - RECENT_VERSION_TAG=$(git describe --tags --match 'v*.*.*' --exclude '*-dev*' --always --abbrev=0 HEAD || exit 1) - commits="$(git rev-list ${RECENT_VERSION_TAG}..HEAD --count)" - if [ "${commits}" = "0" ]; then - git describe --tag HEAD | sed -r 's/^v//' || exit 1 - else - echo $(echo ${RECENT_VERSION_TAG} | sed -r 's/^v//')-${commits}-$(git rev-parse --short=8 HEAD) - fi -fi |