From 1c29fa440c3d68608d7d3c99b2c7fb3d83f1f36f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Oct 2016 22:45:51 -0400 Subject: Include headers in literate documentation --- plugins/literasc.py | 2 +- plugins/wscript | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/literasc.py b/plugins/literasc.py index 0491227..f0b8cc4 100755 --- a/plugins/literasc.py +++ b/plugins/literasc.py @@ -105,7 +105,7 @@ def gen(out, filenames): sys.stderr.write('Failed to open file %s\n' % filename) continue - if filename.endswith('.c'): + if filename.endswith('.c') or filename.endswith('.h'): out.write(format_c_source(filename, file)) elif filename.endswith('.ttl') or filename.endswith('.ttl.in'): out.write(format_ttl_source(filename, file)) diff --git a/plugins/wscript b/plugins/wscript index 0cfd387..f5f6571 100644 --- a/plugins/wscript +++ b/plugins/wscript @@ -29,6 +29,7 @@ def build(bld): files += bld.path.ant_glob('%s/manifest.ttl*' % i) files += bld.path.ant_glob('%s/*.ttl' % i) files += bld.path.ant_glob('%s/*.c' % i) + files += bld.path.ant_glob('%s/*.h' % i) # Compile book sources into book.txt asciidoc source bld(rule = bld_book_src, -- cgit v1.2.1