aboutsummaryrefslogtreecommitdiffstats
path: root/gendoc.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-10-06 05:52:35 +0000
committerDavid Robillard <d@drobilla.net>2010-10-06 05:52:35 +0000
commit38d8a847b9d472f58cca37567be3200f48f4b07e (patch)
treed77878017ffedf86dc9e3e41a506c3daa98e61b9 /gendoc.py
parent46d38bde1bdc038fd4a8c3dc998077e3f96a1ed7 (diff)
downloadlv2-38d8a847b9d472f58cca37567be3200f48f4b07e.tar.xz
Only create (and link to) release tarballs for extensions with non-zero revisions.
Diffstat (limited to 'gendoc.py')
-rwxr-xr-xgendoc.py6
1 files changed, 4 insertions, 2 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)):