aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-30 16:13:18 +0000
committerDavid Robillard <d@drobilla.net>2011-05-30 16:13:18 +0000
commit6658b6d9e851b1aa6da25d8dca7676895772a82b (patch)
tree35e86902665e2a03a848ca6dcd4b7f96c0f81359
parent2e891758eebb4fb7a4c03e8091ab9ed8671a1436 (diff)
downloadlv2-6658b6d9e851b1aa6da25d8dca7676895772a82b.tar.xz
Update to LV2 4.0 definition of unstable release (minor micro version number).
-rwxr-xr-xgendoc.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/gendoc.py b/gendoc.py
index b980530..e12b04d 100755
--- a/gendoc.py
+++ b/gendoc.py
@@ -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>'