aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 19:23:49 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 19:28:53 +0100
commit95bc2dde1a7634844ccc3c41382f365d9c721efc (patch)
tree72e4eff2bf0225dafdfd292ad375bc3009109a84 /wscript
parent054a218a1f4a093e06e41eecbb4aa4edb887c272 (diff)
downloadlv2-95bc2dde1a7634844ccc3c41382f365d9c721efc.tar.xz
Fix online documentation generation
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/wscript b/wscript
index ff5a4a7..400e6a2 100644
--- a/wscript
+++ b/wscript
@@ -299,8 +299,9 @@ def build(bld):
for spec in specs:
# Copy spec files to build dir
srcpath = spec.srcpath()
- name = os.path.basename(srcpath)
- full_path = spec_map[name]
+ basename = os.path.basename(srcpath)
+ full_path = spec_map[basename]
+ name = 'lv2core' if basename == 'core' else basename
path = chop_lv2_prefix(full_path)
base = full_path[len('lv2/lv2plug.in'):]
for f in bld.path.ant_glob(srcpath + '/*.*'):
@@ -360,6 +361,7 @@ def build(bld):
' --docdir=' + os.path.relpath('doc/html', os.path.dirname(html_path)) +
' --tags=doc/tags' +
' --index=' + index_file +
+ (' --online' if bld.env.ONLINE_DOCS else '') +
' ${SRC} ${TGT}')
bld(rule = cmd,