diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..54a34ba --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Git repository +REPO="https://sourceware.org/git/valgrind.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 '^VALGRIND' | tail -n1) + +# Trim prefix +VERSION=${TAG_NAME//VALGRIND_/} + +# Replace '_' with '.' +VERSION=${VERSION//_/.} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 71c51ef..285f4e7 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: valgrind description: Instrumentation framework for building dynamic analysis tools -version: 3.22.0 +version: 3.25.1 url: https://valgrind.org/ license: GPL2-or-later architecture: any