aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-16 17:22:19 -0400
committerDavid Robillard <d@drobilla.net>2016-08-17 17:27:10 -0400
commitbbde1dfcf0185a2df9b2555507f3c633bbd918d5 (patch)
tree0475223c1bdc138e950135061f407e61c4b71602 /wscript
parent4c526165a29cbd1a42374cbaf837d4e582b674bd (diff)
downloadjalv-bbde1dfcf0185a2df9b2555507f3c633bbd918d5.tar.gz
jalv-bbde1dfcf0185a2df9b2555507f3c633bbd918d5.tar.bz2
jalv-bbde1dfcf0185a2df9b2555507f3c633bbd918d5.zip
Add target for generating release announcements
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/wscript b/wscript
index 62219bd..03e3c4e 100644
--- a/wscript
+++ b/wscript
@@ -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'))