diff options
author | David Robillard <d@drobilla.net> | 2011-11-21 05:35:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-21 05:35:23 +0000 |
commit | 3031af150dd90ba63ab9c3b8b57161dc5d72ef69 (patch) | |
tree | 8cc656c1cabb7ff2377d9dd7a8eb9551edeac1fc /wscript | |
parent | 47498992da82c9c445152ae541c7e49323df0002 (diff) | |
download | lv2-3031af150dd90ba63ab9c3b8b57161dc5d72ef69.tar.xz |
Release preparation.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -57,12 +57,19 @@ def release(ctx): rdf = rdflib.Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#') doap = rdflib.Namespace('http://usefulinc.com/ns/doap#') - manifests = glob.glob('ext/*.lv2/manifest.ttl') - manifests += glob.glob('extensions/*.lv2/manifest.ttl') + try: + shutil.rmtree('build/spec') + except: + pass + + os.makedirs('build/spec') + + manifests = glob.glob('lv2/ns/lv2core/manifest.ttl') + manifests += glob.glob('lv2/ns/*/*/manifest.ttl') for manifest in manifests: dir = os.path.dirname(manifest) name = os.path.basename(dir).replace('.lv2', '') - + m = rdflib.ConjunctiveGraph() m.parse(manifest, format='n3') @@ -78,12 +85,17 @@ def release(ctx): continue if minor != 0 and micro % 2 == 0: + autowaf.display_header('\nBuilding %s Release\n' % dir) try: subprocess.call( - ['./waf', 'distclean', 'configure', 'build', 'distcheck', 'distclean'], + ['./waf', 'distclean', 'configure', 'build', 'distcheck'], cwd=dir) + for i in glob.glob(dir + '/*.tar.bz2'): + shutil.move(i, 'build/spec') except: - Logs.error('Error building %s release' % name) + Logs.error('Error building %s release' % (name, e)) + + subprocess.call(['./waf', 'distclean'], cwd=dir) def lint(ctx): for i in (['lv2/ns/lv2core/lv2.h'] |