From 38d8a847b9d472f58cca37567be3200f48f4b07e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 6 Oct 2010 05:52:35 +0000 Subject: Only create (and link to) release tarballs for extensions with non-zero revisions. --- gendoc.py | 6 ++++-- lv2specgen/lv2specgen.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gendoc.py b/gendoc.py index eca6c35..beca482 100755 --- a/gendoc.py +++ b/gendoc.py @@ -103,8 +103,10 @@ SELECT ?rev FROM <%s.lv2/%s.ttl> WHERE { <%s> doap:release [ doap:revision ?rev else: rev = '0' - subprocess.call(['tar', '-czf', outdir + '/releases/%s.lv2-%s.tgz' % (b, rev), - outdir + '/%s.lv2' % b]) + + if rev != '0': + subprocess.call(['tar', '-czf', outdir + '/releases/lv2-%s-%s.tar.gz' % (b, rev), + outdir + '/%s.lv2' % b]) specgendir = '../../../../lv2specgen/' if (os.access(outdir + '/%s.lv2/%s.ttl' % (b, b), os.R_OK)): diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 9adae8d..00290eb 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -715,7 +715,8 @@ def specgen(specloc, docdir, template, instances=False, mode="spec"): header_path = bundle_path + '/' + basename + '.h' other_files = '
  • Bundle
  • \n' - other_files += '
  • Releases
  • \n' + if revision and revision[0] != '0': + other_files += '
  • Releases
  • \n' if os.path.exists(os.path.abspath(header_path)): other_files += '
  • Header Documentation
  • \n' % ( basename + '_8h.html') -- cgit v1.2.1