Commit graph

4 commits

Author SHA1 Message Date
Daniel Eklöf
9fb3c58588
generate-version: redirect *both* stdout and stderr to /dev/null 2019-11-27 21:20:41 +01:00
Daniel Eklöf
6c12ea3811
generate-version: handle builds that aren't git clones 2019-11-24 14:00:21 +01:00
Daniel Eklöf
4250ae0a01
generate-version: conform to POSIX sh 2019-10-19 22:07:38 +02:00
Daniel Eklöf
c4f9168191
meson: fix version generation from git
run_command() was only run at configure time, meaning the generated
version (that was passed on to the sources via -DYAMBAR_VERSION)
became stale.

Fix by implementing a shell script that generates a header file, and
wrap this in a custom target that is run every time (but the generated
file is only updated when the version changes)
2019-10-19 21:47:21 +02:00