summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-17 20:10:25 +0000
committerDavid Robillard <d@drobilla.net>2011-03-17 20:10:25 +0000
commitc69ce36bea15426f4793f3247d37019f531e1f1f (patch)
treef3472f180489d4cd047a319c0e670cee319fa2bc /wscript
parent2f06c910da4a3a57857f69b1b3e803c18e71deb3 (diff)
downloadsuil-c69ce36bea15426f4793f3247d37019f531e1f1f.tar.gz
suil-c69ce36bea15426f4793f3247d37019f531e1f1f.tar.bz2
suil-c69ce36bea15426f4793f3247d37019f531e1f1f.zip
Improve documentation.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3111 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/wscript b/wscript
index e824451..273a115 100644
--- a/wscript
+++ b/wscript
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+import os
import subprocess
import waflib.Logs as Logs, waflib.Options as Options
@@ -91,5 +92,17 @@ def build(bld):
bld.add_post_fun(autowaf.run_ldconfig)
+def fixdocs(ctx):
+ try:
+ os.chdir('build/doc/html')
+ os.system("sed -i 's/SUIL_API //' group__suil.html")
+ os.system("sed -i 's/SUIL_DEPRECATED //' group__suil.html")
+ os.remove('index.html')
+ os.symlink('group__suil.html',
+ 'index.html')
+ except Exception as e:
+ Logs.error("Failed to fix up Doxygen documentation\n")
+ Logs.error(e)
+
def lint(ctx):
subprocess.call('cpplint.py --filter=-whitespace,+whitespace/comments,-build/header_guard,-readability/casting,-readability/todo src/* suil/*', shell=True)