Files
heartwood/build/version.sh
T
Lorenz Leutgeb 244a8b6fca scripts, build: Name all scripts *.sh
… so that `just check-scripts` actually finds all of them.
2026-10-30 12:48:00 +01:00

10 lines
268 B
Bash
Executable File

#! /usr/bin/env 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"