diff options
author | David Robillard <d@drobilla.net> | 2011-05-30 16:13:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-30 16:13:18 +0000 |
commit | 6658b6d9e851b1aa6da25d8dca7676895772a82b (patch) | |
tree | 35e86902665e2a03a848ca6dcd4b7f96c0f81359 | |
parent | 2e891758eebb4fb7a4c03e8091ab9ed8671a1436 (diff) | |
download | lv2-6658b6d9e851b1aa6da25d8dca7676895772a82b.tar.xz |
Update to LV2 4.0 definition of unstable release (minor micro version number).
-rwxr-xr-x | gendoc.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -154,6 +154,13 @@ SELECT ?rev FROM <%s.lv2/%s.ttl> WHERE { <%s> doap:release [ doap:revision ?rev else: rev = '0' + minor = '0' + micro = '0' + match = re.search('([^\.]*)\.([^\.]*)', rev) + if match: + minor = match.group(1) + micro = match.group(2) + # if rev != '0' and rev.find('pre') == -1: # path = os.path.join(os.path.abspath(release_dir), 'lv2-%s-%s.tar.gz' % (b, rev)) # subprocess.call(['tar', '--exclude-vcs', '-czf', path, @@ -172,7 +179,7 @@ SELECT ?rev FROM <%s.lv2/%s.ttl> WHERE { <%s> doap:release [ doap:revision ?rev '-i'], cwd=outdir); li = '<li>' - if rev == '0': + if minor == '0' or (int(micro) % 2) != 0: li += '<span style="color: red;">Experimental: </span>' li += '<a rel="rdfs:seeAlso" href="%s">%s</a>' % (b, b) li += '</li>' |