From 700cc8c294f4bf18d8bb40927e2ffcba354472c4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 3 Oct 2017 22:11:36 +0200 Subject: Add release and upload commands --- wscript | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index da8d101..0019c7b 100644 --- a/wscript +++ b/wscript @@ -365,12 +365,17 @@ def build(bld): if bld.env.DOCS: bld.add_post_fun(lambda ctx: autowaf.make_simple_dox(APPNAME)) -def upload_docs(ctx): - os.system("rsync -ravz --delete -e ssh build/doc/html/ drobilla@drobilla.net:~/drobilla.net/docs/suil/") - def lint(ctx): subprocess.call('cpplint.py --filter=-whitespace,+whitespace/comments,-build/header_guard,-readability/casting,-readability/todo src/* suil/*', shell=True) +def release(ctx): + autowaf.release(APPNAME.title(), VERSION) + +def upload(ctx): + autowaf.run_script( + ['scp suil-%s.tar* drobilla@drobilla.net:~/download.drobilla.net/' % VERSION, + 'rsync -ravz --delete -e ssh build/doc/html/ drobilla@drobilla.net:~/drobilla.net/docs/suil/']) + def posts(ctx): path = str(ctx.path.abspath()) autowaf.news_to_posts( -- cgit v1.2.1