Initial commit

This commit is contained in:
2025-09-16 16:44:33 +03:00
commit ab0c274031
4 changed files with 52 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Git repository
REPO="git://git.gnupg.org/gpgmepp.git"
# Get tag name using 'git ls-remote'
TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -E '^gpgmepp-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}' | tail -n1)
# Trim prefix
VERSION=${TAG_NAME//gpgmepp-/}
echo "$VERSION"