summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-10-03 22:11:36 +0200
committerDavid Robillard <d@drobilla.net>2017-10-03 22:41:23 +0200
commit700cc8c294f4bf18d8bb40927e2ffcba354472c4 (patch)
tree2bc4dc976dc2657d687445e28545e3679fae7906 /wscript
parent386330123fd8efe2bdae47c9a235baa5d217d603 (diff)
downloadsuil-700cc8c294f4bf18d8bb40927e2ffcba354472c4.tar.gz
suil-700cc8c294f4bf18d8bb40927e2ffcba354472c4.tar.bz2
suil-700cc8c294f4bf18d8bb40927e2ffcba354472c4.zip
Add release and upload commands
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files 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(