From f22aa410a98772d2e23ec9693d850b849bde7613 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 3 Aug 2025 15:55:59 +0300 Subject: [PATCH] Update package version to 9.7 --- check-version.sh | 12 ++++++++++++ pkg.info | 3 +-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 check-version.sh 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