From bbde1dfcf0185a2df9b2555507f3c633bbd918d5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 16 Aug 2016 17:22:19 -0400 Subject: Add target for generating release announcements --- wscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'wscript') 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')) -- cgit v1.2.1