aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-19 20:09:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-19 20:09:52 +0000
commit286db002f8c85fee0d65d05c845fb1878fcd11a6 (patch)
tree8c6fe938832eaeddb9dbe778a45886c892f88be6 /doc
parentfont: glyph_for_wchar(): ensure glyph->valid == false, in *all* error cases (diff)
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 -DFUZZEL_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)
Diffstat (limited to 'doc')
-rw-r--r--doc/meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/meson.build b/doc/meson.build
index 01738d43..66a9b183 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -1,3 +1,5 @@
+sh = find_program('sh', native: true)
+
scdoc = dependency('scdoc', native: true)
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)