aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-02-03 16:39:30 +0100
committerDavid Robillard <d@drobilla.net>2019-02-03 16:39:30 +0100
commitbb9141e5ccadc65ce76152b9291e88f47983d4a7 (patch)
treee067cb64e5a79808ebe00ab6c6541e2940a2dd8d
parent96a6283a5fe023c59113242631f337da5f0eb278 (diff)
downloadlv2-bb9141e5ccadc65ce76152b9291e88f47983d4a7.tar.xz
Fix duplicate news entries in documentation
-rw-r--r--wscript13
1 files changed, 8 insertions, 5 deletions
diff --git a/wscript b/wscript
index ef3628d..16c4f02 100644
--- a/wscript
+++ b/wscript
@@ -133,11 +133,12 @@ def ttl_files(path, specdir):
return map(abspath,
path.ant_glob(specdir.path_from(path) + '/*.ttl'))
-def load_ttl(files):
+def load_ttl(files, exclude = []):
import rdflib
model = rdflib.ConjunctiveGraph()
for f in files:
- model.parse(f, format='n3')
+ if f not in exclude:
+ model.parse(f, format='n3')
return model
# Task to build extension index
@@ -175,9 +176,11 @@ def build_index(task):
ctx = task.generator.bld
subdirs = specdirs(ctx.path)
for specdir in subdirs:
- m = load_ttl(ttl_files(ctx.path, specdir))
- name = os.path.basename(specdir.abspath())
- spec = m.value(None, rdf.type, lv2.Specification)
+ files = ttl_files(ctx.path, specdir)
+ exclude = [os.path.join(str(ctx.path), 'lv2/core/meta.ttl')]
+ m = load_ttl(files, exclude)
+ name = os.path.basename(specdir.abspath())
+ spec = m.value(None, rdf.type, lv2.Specification)
if spec:
for dist in dists:
release = m.value(None, doap['file-release'], dist[1])