Files
radicle-explorer/crates/radicle-httpd/build/version
T
Rūdolfs Ošiņš 5e70f8f2bf httpd: Use releases/httpd/ for release tags
Since desktop was merged in, its `releases/<version>` tags are in our
history too, and `git describe --match='releases/*'` picked up
`releases/0.16.0` as the httpd version. The changelog also leaves out
`desktop/`, otherwise the next one would list its whole history.
2026-10-13 16:53:36 +02:00

10 lines
271 B
Bash
Executable File

#!/bin/sh
if ! version="$(git describe --match='releases/httpd/*' --candidates=1 2>/dev/null)"; then
echo "fatal: no version tag found by 'git describe'" >&2 ; exit 1
fi
# Remove `releases/httpd/` prefix from version.
version=${version#releases/httpd/}
echo $version