diff options
author | David Robillard <d@drobilla.net> | 2011-11-21 05:35:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-21 05:35:23 +0000 |
commit | 3031af150dd90ba63ab9c3b8b57161dc5d72ef69 (patch) | |
tree | 8cc656c1cabb7ff2377d9dd7a8eb9551edeac1fc /ext.wscript | |
parent | 47498992da82c9c445152ae541c7e49323df0002 (diff) | |
download | lv2-3031af150dd90ba63ab9c3b8b57161dc5d72ef69.tar.xz |
Release preparation.
Diffstat (limited to 'ext.wscript')
-rw-r--r-- | ext.wscript | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext.wscript b/ext.wscript index 7795eb4..276bee9 100644 --- a/ext.wscript +++ b/ext.wscript @@ -1,7 +1,8 @@ #!/usr/bin/env python +import glob import os -import sys import shutil +import sys from waflib.extras import autowaf as autowaf import waflib.Scripting as Scripting import waflib.Logs as Logs @@ -116,7 +117,7 @@ def build(bld): bld.symlink_as(os.path.join(include_dir, info.NAME), os.path.relpath(bundle_dir, include_dir)) -def write_news(doap_file): +def write_news(): import rdflib import textwrap from time import strftime, strptime @@ -130,9 +131,10 @@ def write_news(doap_file): m = rdflib.ConjunctiveGraph() try: - m.parse(doap_file, format='n3') - except: - print('warning: no DOAP file found, unable to generate NEWS') + for i in glob.glob('*.ttl'): + m.parse(i, format='n3') + except Exception as e: + print('warning: error parsing data, unable to generate NEWS ' + str(e)) return spec = m.value(None, rdf.type, doap.Project) @@ -181,7 +183,7 @@ class Dist(Scripting.Dist): lv2extinfo_py.close() # Write NEWS file - write_news('lv2-%s.doap.ttl' % info.NAME) + write_news() # Build distribution Scripting.Dist.archive(self) |