diff options
author | David Robillard <d@drobilla.net> | 2011-03-17 20:37:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-17 20:37:59 +0000 |
commit | 23c129f206e2a651c7d000c4a5abffe37ae85860 (patch) | |
tree | 5c8e6d53f213cfd649910868683ec7b756db906a | |
parent | 36357588bc34e8afa1a68bf347055145bdad572f (diff) | |
download | suil-23c129f206e2a651c7d000c4a5abffe37ae85860.tar.gz suil-23c129f206e2a651c7d000c4a5abffe37ae85860.tar.bz2 suil-23c129f206e2a651c7d000c4a5abffe37ae85860.zip |
Add waf upload_docs.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3115 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | wscript | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -2,8 +2,8 @@ import os 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) SUIL_VERSION = '0.0.0' @@ -92,7 +92,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/SUIL_API //' group__suil.html") @@ -101,7 +101,10 @@ def fixdocs(ctx): os.symlink('group__suil.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/suil") def lint(ctx): subprocess.call('cpplint.py --filter=-whitespace,+whitespace/comments,-build/header_guard,-readability/casting,-readability/todo src/* suil/*', shell=True) |