Update package version to 2.46.0

This commit is contained in:
2026-02-13 18:45:21 +02:00
parent 3dfb8cb120
commit b6e815c62a
2 changed files with 12 additions and 4 deletions
+7 -1
View File
@@ -3,6 +3,12 @@
URL="https://www.gnu.org/software/binutils/"
# Get version number
VERSION=$(curl -s -L "$URL" | grep 'The latest release of GNU binutils is ' | grep -o -E '[0-9]{1,}.[0-9]{1,}(\.[0-9]{1,}|)')
VERSION=$(curl -s -L "$URL" | grep 'The latest release of GNU binutils is ' | grep -o -E '[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?')
# Append '.0' if patch number is missing
DOT_COUNT=`tr -dc '.' <<< "$VERSION" | awk '{ print length; }'`
if [ $DOT_COUNT -eq 1 ]; then
VERSION="${VERSION}.0"
fi
echo "$VERSION"