From de0f40ff7af1f9aa28d4d2a98adeb9b46b7e1b11 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 20 Sep 2025 17:42:00 +0300 Subject: [PATCH] Add check-version.sh script --- check-version.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..eacfb86 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +URL="https://www.speex.org/downloads/" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep -o -E 'SpeexDSP [0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?' | head -n1) + +# Trim prefix +VERSION=${VERSION//SpeexDSP /} + +echo "$VERSION"