Commit graph

2 commits

Author SHA1 Message Date
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