summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2020-01-13 18:00:55 +0000
committerintrigeri <intrigeri@boum.org>2020-01-13 18:02:59 +0000
commit43e8ba1f176c33f7aca433eb768534691666a545 (patch)
tree3eceadb84e834b4cc5bf1a07c9a7d56658fcb0b8
parentdd1ac9c8f6500271e1ca78a498912e775d6eba97 (diff)
Release process: ensure we don't generate UDFs/IUKs about 4.2.1
The 4.2.1 release was aborted.
-rwxr-xr-xbin/iuk-source-versions19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/iuk-source-versions b/bin/iuk-source-versions
index e757004..ea3c2f7 100755
--- a/bin/iuk-source-versions
+++ b/bin/iuk-source-versions
@@ -3,15 +3,34 @@
set -e
set -u
+IGNORED_TAGS="4.2.1"
+
major_version () {
local version="$1"
echo "$version" | perl -p -E 's,[.].*,,'
}
+member () {
+ local item="$1"
+ shift
+ local found=no
+ for i in "$@"; do
+ if [ "$i" = "$item" ]; then
+ found=yes
+ break
+ fi
+ done
+
+ [ "$found" = 'yes' ]
+}
+
RELEASING_VERSION="$1"
RELEASING_MAJOR_VERSION=$(major_version "$RELEASING_VERSION")
git tag | while read tag ; do
+ if member "$tag" $IGNORED_TAGS; then
+ continue
+ fi
version=$(echo "$tag" | perl -p -E 's,-,~,')
major_version=$(major_version "$version")
if [ "$major_version" = "$RELEASING_MAJOR_VERSION" ] && \