diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..0fb7c53 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="git://busybox.net/busybox.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) + +# Replace '_' with '.' +VERSION=${TAG_NAME//_/.} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 7eb2cb0..e722f79 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: busybox description: The swiss army knife of embedded linux -version: 1.36.1 -revision: 2 +version: 1.37.0 url: https://busybox.net/ license: GPL2 architecture: any