summaryrefslogtreecommitdiff
path: root/version-gen.sh (follow)
Commit message (Collapse)AuthorAge
* Remove all traces of gitweb.Andre Noll2026-09-20
| | | | Fixes: 9cf37a57bf2dbe671ddcbb6e902bd2962ba47c51
* Include branch name in version string.Andre Noll2026-08-01
| | | | | | | | | This modifies version-gen.sh to append the output of git describe --all --contains HEAD to the version string we had before. This results in version strings like "0.8.3-2-master" or "0.8.3-2-g239d-t/misc~1".
* version-gen.sh: Drop semicolon after function definitions.Andre Noll2026-05-24
| | | | It it superfluous and causes warnings when compiling with -Wpedantic.
* build: Revamp git versioning.Andre Noll2025-03-25
This rewrites GIT-VERSION-GEN and renames it to version-gen.sh. The main difference is that the script now generates version.c rather than version.h, speeding up the build because switching branches or transitioning from a clean to a dirty work-tree (or vice versa) changes the version string. Before the patch, all files which included version.h were recompiled. With the patch applied, only the short version.c needs to be recompiled. The generated version,c defines one function which returns the single-line version string and a second function which returns the multi-line version information (author, copyright, git URL etc). This information is now passed to version-gen.sh via environment variables. The CPP macros we had before are removed.