diff options
author | David Robillard <d@drobilla.net> | 2016-08-16 17:22:19 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-17 17:27:10 -0400 |
commit | bbde1dfcf0185a2df9b2555507f3c633bbd918d5 (patch) | |
tree | 0475223c1bdc138e950135061f407e61c4b71602 /wscript | |
parent | 4c526165a29cbd1a42374cbaf837d4e582b674bd (diff) | |
download | jalv-bbde1dfcf0185a2df9b2555507f3c633bbd918d5.tar.gz jalv-bbde1dfcf0185a2df9b2555507f3c633bbd918d5.tar.bz2 jalv-bbde1dfcf0185a2df9b2555507f3c633bbd918d5.zip |
Add target for generating release announcements
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,4 +1,5 @@ #!/usr/bin/env python +import os import subprocess from waflib.extras import autowaf as autowaf import waflib.Options as Options @@ -213,3 +214,14 @@ def upload_docs(ctx): def lint(ctx): subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include,-runtime/sizeof src/* jalv/*', shell=True) + +def posts(ctx): + path = str(ctx.path.abspath()) + autowaf.news_to_posts( + os.path.join(path, 'NEWS'), + {'title' : 'Jalv', + 'description' : autowaf.get_blurb(os.path.join(path, 'README')), + 'dist_pattern' : 'http://download.drobilla.net/jalv-%s.tar.bz2'}, + { 'Author' : 'drobilla', + 'Tags' : 'Hacking, LAD, LV2' }, + os.path.join(out, 'posts')) |