From 6658b6d9e851b1aa6da25d8dca7676895772a82b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 May 2011 16:13:18 +0000 Subject: Update to LV2 4.0 definition of unstable release (minor micro version number). --- gendoc.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 = '
  • ' - if rev == '0': + if minor == '0' or (int(micro) % 2) != 0: li += 'Experimental: ' li += '%s' % (b, b) li += '
  • ' -- cgit v1.2.1