10 echo "$version" | perl
-p -E 's,[.].*,,'
18 if [ "$i" = "$item" ]; then
27 RELEASING_VERSION
="$1"
28 RELEASING_MAJOR_VERSION
=$
(major_version
"$RELEASING_VERSION")
31 git tag |
while read -r tag
; do
32 # shellcheck disable=SC2086
33 if member
"$tag" $IGNORED_TAGS; then
36 version
=$
(echo "$tag" | perl
-p -E 's,-,~,')
37 major_version
=$
(major_version
"$version")
38 if [ "$major_version" = "$RELEASING_MAJOR_VERSION" ] && \
39 dpkg
--compare-versions "$version" lt
"$RELEASING_VERSION" ; then
43 ) |
sort --version-sort |
xargs |
tr -d '\n'