summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-09 08:14:31 +0000
committerDavid Robillard <d@drobilla.net>2012-07-09 08:14:31 +0000
commit13c543263ba9a80fc9496a8c840726ca223f49d1 (patch)
treeacfdfa9b4aba37736462f50afc623aeb35481b34 /wscript
parent4c6956a76b6bb18a4d8f9c2bf366b7da8842bb06 (diff)
downloadsratom-13c543263ba9a80fc9496a8c840726ca223f49d1.tar.gz
sratom-13c543263ba9a80fc9496a8c840726ca223f49d1.tar.bz2
sratom-13c543263ba9a80fc9496a8c840726ca223f49d1.zip
Factor out documentation fixup stuff to autowaf.
Update Doxygen stuff and improve documentation style. Update to r70/autowaf. git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4528 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript23
1 files changed, 2 insertions, 21 deletions
diff --git a/wscript b/wscript
index 2e4f9fe..1145dd1 100644
--- a/wscript
+++ b/wscript
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-import glob
import os
import shutil
import subprocess
@@ -163,27 +162,9 @@ def test(ctx):
def lint(ctx):
subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include src/* sratom/*', shell=True)
-def build_dir(ctx, subdir):
- if autowaf.is_child():
- return os.path.join('build', APPNAME, subdir)
- else:
- return os.path.join('build', subdir)
-
def fix_docs(ctx):
- try:
- top = os.getcwd()
- os.chdir(build_dir(ctx, 'doc/html'))
- os.system("sed -i 's/SRATOM_API //' group__sratom.html")
- os.system("sed -i 's/SRATOM_DEPRECATED //' group__sratom.html")
- os.system("sed -i 's/href=\"doc\/style.css\"/href=\"style.css\"/' group__sratom.html")
- os.remove('index.html')
- os.symlink('group__sratom.html', 'index.html')
- os.chdir(top)
- os.chdir(build_dir(ctx, 'doc/man/man3'))
- os.system("sed -i 's/SRATOM_API //' sratom.3")
- os.chdir(top)
- except:
- Logs.error("Failed to fix up %s documentation" % APPNAME)
+ if ctx.cmd == 'build':
+ autowaf.make_simple_dox(APPNAME)
def upload_docs(ctx):
os.system("rsync -ravz --delete -e ssh build/doc/html/ drobilla@drobilla.net:~/drobilla.net/docs/sratom/")