mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
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.
10 lines
271 B
Bash
Executable File
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
|