aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-08 04:02:23 +0000
committerDavid Robillard <d@drobilla.net>2012-02-08 04:02:23 +0000
commitb617875c6f3ad439d25ae166da79df839ebfdc71 (patch)
treebc5d012bfc31b2eb670311b531aab3d8efcc68be
parent1415e9a254df9ebc5f3452b1cf81888fd82c3f65 (diff)
downloadlv2-b617875c6f3ad439d25ae166da79df839ebfdc71.tar.xz
Add more obvious separate download row to header table.
-rwxr-xr-xlv2specgen/lv2specgen.py15
-rw-r--r--lv2specgen/template.html1
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 += '<a href="http://lv2plug.in/spec/%s-%d.%d.tar.bz2">Release</a>, ' % (release_name, version[0], version[1])
- other_files += '<a href="http://lv2plug.in/spec">All releases</a>, '
+ filename = '%s-%d.%d.tar.bz2' % (release_name, version[0], version[1])
+ url = 'http://lv2plug.in/spec/%s' % filename
+ releases += '<a href="%s">%s</a> (<a href="%s.sig">sig</a>),' % (
+ url, filename, url)
+ if version[0] == 0:
+ releases += ' n/a (unreleased)'
+ else:
+ releases += ' <a href="http://lv2plug.in/spec">other releases</a>'
+ releases = '<tr><th class="metahead">Download</th><td>%s</td></tr>' % releases
+ template = template.replace('@RELEASES@', releases)
+ other_files = ''
if os.path.exists(os.path.abspath(header_path)):
other_files += '<a href="' + docdir + '/html/%s">API documentation</a>, ' % (
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 @@
<table id="meta">
<tr><th>URI</th><td><a href="@URI@">@URI@</a></td></tr>
<tr><th>Version</th><td>@REVISION@</td></tr>
+ @RELEASES@
<tr><th>Prefixes</th><td>@PREFIXES@</td></tr>
<tr><th>Discuss</th><td>
<a href="mailto:@MAIL@">@MAIL@</a>