diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..0552111 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Git repository +REPO="https://git.kernel.org/pub/scm/network/iproute2/iproute2.git" + +# 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) + +# Get version number from tag name +VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) + +# Trim 'v' character in VERSION variable +VERSION=$(echo "$VERSION" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index cd391e7..ef4a676 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: iproute2 description: IP Routing utilities -version: 6.14.0 -revision: 2 +version: 6.15.0 url: https://www.kernel.org/pub/linux/utils/net/iproute2/ license: GPL2-or-later architecture: any