aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-27 01:22:34 +0200
committeruser <user@clank>2026-08-27 01:22:34 +0200
commit276ea2610c783bd61789691b910b4be4dbeae890 (patch)
treec88be298d15b4c8bd493229620f1c4ef27fe23dd /include
parentmacos-remote-build: stop rsyncing 850M of caches to the builder (diff)
downloadslosh-276ea2610c783bd61789691b910b4be4dbeae890.tar.gz
slosh-276ea2610c783bd61789691b910b4be4dbeae890.tar.xz
slosh-276ea2610c783bd61789691b910b4be4dbeae890.zip
version: derive from git tags instead of a hand-bumped constant
VERSION was a constant in the Makefile that had to be bumped by hand and could silently disagree with the git tag a release was cut from. Derive it instead, with a committed ./VERSION as the floor and no-git fallback: on a tag v0.2.0 -> 0.2.0 past a tag v0.2.0-5-gabc123 -> 0.2.0-5-gabc123 (sorts after 0.2.0) before any tag 0.1.0-197-g2d1815 -> ./VERSION + commit count + short id no .git at all 0.1.0 -> ./VERSION verbatim (cgit snapshot -> Homebrew source build) A dirty tree appends -dirty. The commit count keeps 'brew upgrade' ordering monotonic before the first tag exists. version.h now bakes just VERSION (dropping the redundant +GITDESC, which the derived string already carries). contrib/brew-release reads the base from ./VERSION rather than grepping the Makefile's VERSION line, which is now a $(shell ...) expression it could not parse.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions