diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..bb3b748 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="git://git.gnupg.org/npth.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -E '^npth-[0-9]{1,}\.[0-9]{1,}' | tail -n1) + +# Trim prefix +VERSION=${TAG_NAME//npth-/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 3362938..cc1fdec 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: npth description: The New GNU Portable Threads Library -version: 1.6 +version: 1.8 url: https://www.gnupg.org/software/npth/index.html license: LGPL2.1-or-later architecture: any