diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..1accd29 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="https://www.gnu.org/software/m4/" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep 'The latest stable version is ' | grep -o -E '([0-9]*\.[0-9]*)\.[0-9]*') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 34733a5..cc75527 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: m4 description: GNU macro processor -version: 1.4.19 +version: 1.4.20 url: https://www.gnu.org/software/m4/ license: GPL3 architecture: any