diff options
author | David Robillard <d@drobilla.net> | 2011-03-17 20:38:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-17 20:38:28 +0000 |
commit | 62a05cd2e357fde1eee04c5cbb6ee00b81aa32c2 (patch) | |
tree | d7dd7d5fea6232e0198740d265bcad1163b0d8b0 | |
parent | e3eeebaaa502dac63906450d1bc61dcd3819ce71 (diff) | |
download | sord-62a05cd2e357fde1eee04c5cbb6ee00b81aa32c2.tar.gz sord-62a05cd2e357fde1eee04c5cbb6ee00b81aa32c2.tar.bz2 sord-62a05cd2e357fde1eee04c5cbb6ee00b81aa32c2.zip |
Add waf upload_docs.
git-svn-id: http://svn.drobilla.net/sord/trunk@63 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r-- | wscript | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,6 +1,8 @@ #!/usr/bin/env python -import waflib.Options as Options +import os + 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) SORD_VERSION = '0.1.0' @@ -118,7 +120,7 @@ def build(bld): # Documentation autowaf.build_dox(bld, 'SORD', SORD_VERSION, top, out) -def fixdocs(ctx): +def fix_docs(ctx): try: os.chdir('build/doc/html') os.system("sed -i 's/SORD_API //' group__sord.html") @@ -127,7 +129,10 @@ def fixdocs(ctx): os.symlink('group__sord.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/sord") def test(ctx): autowaf.pre_test(ctx, APPNAME) |