diff options
| author | David Robillard <d@drobilla.net> | 2011-11-20 23:08:57 +0000 | 
|---|---|---|
| committer | David Robillard <d@drobilla.net> | 2011-11-20 23:08:57 +0000 | 
| commit | 725d4a404b838da6b67d9da66228a1125bddef57 (patch) | |
| tree | a1daab3d767c85b1b67ff3a9eb60d54721b2e5fc /lv2specgen | |
| parent | 5ae0165d6d0420e95e22c1451e319b9e83398c28 (diff) | |
| download | lv2-725d4a404b838da6b67d9da66228a1125bddef57.tar.xz | |
Lay out repository structure to match include and URI structure.
Treat lv2core like all the other specifications in gendoc.py.
Diffstat (limited to 'lv2specgen')
| -rwxr-xr-x | lv2specgen/lv2specgen.py | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index a0fdc52..1a7455d 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -996,8 +996,7 @@ def specgen(specloc, indir, docdir, style_uri, doc_base, doclinks, instances=Fal              os.path.join(doc_base, url), sym)      m = rdflib.ConjunctiveGraph() -    base = specloc[0:specloc.rfind('/')] -    manifest_path = os.path.join(base, 'manifest.ttl') +    manifest_path = os.path.join(os.path.dirname(specloc), 'manifest.ttl')      m.parse(manifest_path, format='n3')      m.parse(specloc, format='n3') @@ -1067,7 +1066,7 @@ def specgen(specloc, indir, docdir, style_uri, doc_base, doclinks, instances=Fal      filename = os.path.basename(specloc)      basename = filename[0:filename.rfind('.')] -    template = template.replace('@STYLE_URI@', os.path.join(doc_base, style_uri)) +    template = template.replace('@STYLE_URI@', style_uri)      template = template.replace('@PREFIXES@', str(prefixes_html))      template = template.replace('@BASE@', spec_ns_str)      template = template.replace('@AUTHORS@', specAuthors(m, spec_url)) |