Files
speexdsp/check-version.sh
2025-09-20 17:42:00 +03:00

12 lines
250 B
Bash

#!/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"