Files
Erik Kundt 954d7bfbea chore: Move to local release builds
Introduce a new local build system based on `cargo zigbuild`. It's
a generalized version of the heartwood build system, which aims to be
moved into its own repository at some point.
2025-11-27 13:39:29 +01:00

10 lines
259 B
Bash
Executable File

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