From b617875c6f3ad439d25ae166da79df839ebfdc71 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 8 Feb 2012 04:02:23 +0000 Subject: Add more obvious separate download row to header table. --- lv2specgen/lv2specgen.py | 15 ++++++++++++--- lv2specgen/template.html | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 3626427..bac9cd5 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -1100,14 +1100,23 @@ def specgen(specloc, indir, docdir, style_uri, doc_base, doclinks, instances=Fal header_path = bundle_path + '/' + basename + '.h' - other_files = '' + releases = '' if not experimental: release_name = "lv2-" + basename if basename == "lv2core": release_name = "lv2core" - other_files += 'Release, ' % (release_name, version[0], version[1]) - other_files += 'All releases, ' + filename = '%s-%d.%d.tar.bz2' % (release_name, version[0], version[1]) + url = 'http://lv2plug.in/spec/%s' % filename + releases += '%s (sig),' % ( + url, filename, url) + if version[0] == 0: + releases += ' n/a (unreleased)' + else: + releases += ' other releases' + releases = 'Download%s' % releases + template = template.replace('@RELEASES@', releases) + other_files = '' if os.path.exists(os.path.abspath(header_path)): other_files += 'API documentation, ' % ( basename + '_8h.html') diff --git a/lv2specgen/template.html b/lv2specgen/template.html index 6065af6..a9d1ded 100644 --- a/lv2specgen/template.html +++ b/lv2specgen/template.html @@ -23,6 +23,7 @@ + @RELEASES@
URI@URI@
Version@REVISION@
Prefixes@PREFIXES@
Discuss @MAIL@ -- cgit v1.2.1