From f3634a01d834341aead045a8152a4d589501f916 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Mar 2011 20:37:47 +0000 Subject: Add waf upload_docs. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3114 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index fc3adbc..d7f4206 100644 --- a/wscript +++ b/wscript @@ -2,8 +2,8 @@ import os import sys -import waflib.Options as Options from waflib.extras import autowaf as autowaf +import waflib.Options as Options # Version of this package (even if built as a child) SLV2_VERSION = '0.7.0alpha' @@ -278,7 +278,7 @@ def build(bld): bld.add_post_fun(autowaf.run_ldconfig) -def fixdocs(ctx): +def fix_docs(ctx): try: os.chdir('build/doc/html') os.system("sed -i 's/SLV2_API //' group__slv2.html") @@ -287,7 +287,10 @@ def fixdocs(ctx): os.symlink('group__slv2.html', 'index.html') except Exception as e: - Logs.error("Failed to fix up Doxygen documentation\n") + Logs.error("Failed to fix up Doxygen documentation (%s)\n" % e) + +def upload_docs(ctx): + os.system("rsync -avz --delete -e ssh build/doc/html/* drobilla@drobilla.net:~/drobilla.net/docs/slv2") def test(ctx): autowaf.pre_test(ctx, APPNAME) -- cgit v1.2.1