Add check-version.sh script

This commit is contained in:
2025-08-18 21:13:53 +03:00
parent 306623cb3b
commit adeeb58cc4
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
URL="https://www.multiprecision.org/mpc/download.html"
# Get version number
VERSION=$(curl -s -L "$URL" | grep 'Version ' | head -n1 | grep -o -E '[0-9]{1,}.[0-9]{1,}(\.[0-9]{1,}|)')
echo "$VERSION"