aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>