From fa17b08338b44f7c623a4caa4268bcf99884f9f9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Mar 2011 20:38:11 +0000 Subject: Add waf upload_docs. git-svn-id: http://svn.drobilla.net/serd/trunk@126 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- wscript | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 6c0ffbb3..2539ca7c 100644 --- a/wscript +++ b/wscript @@ -5,8 +5,8 @@ import os import shutil import subprocess -import waflib.Logs as Logs, waflib.Options as Options from waflib.extras import autowaf as autowaf +import waflib.Logs as Logs, waflib.Options as Options # Version of this package (even if built as a child) SERD_VERSION = '0.1.0' @@ -151,7 +151,7 @@ def amalgamate(ctx): amalgamation.close() -def fixdocs(ctx): +def fix_docs(ctx): try: os.chdir('build/doc/html') os.system("sed -i 's/SERD_API //' group__serd.html") @@ -160,7 +160,10 @@ def fixdocs(ctx): os.symlink('group__serd.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/serd") def test(ctx): blddir = "" -- cgit v1.2.1