diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..17bbfef --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="git://git.sv.gnu.org/coreutils" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | tail -1 | cut -d'/' -f3) + +# Trim 'v' character in VERSION variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index e337358..412793f 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: gnu-coreutils description: The GNU core utilities -version: 9.6 -revision: 2 +version: 9.7 url: https://www.gnu.org/software/coreutils/ license: GPL3-or-later architecture: any