summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-09 18:56:45 +0000
committerDavid Robillard <d@drobilla.net>2012-07-09 18:56:45 +0000
commit0533574a426e727049d2f79426f2a480c7b0b274 (patch)
tree8fd73159edeb37b3e706a7ca402ea5d8c61c7f48 /wscript
parente84a563fb492133aa18e94d687dbd2f352e699a5 (diff)
downloadsord-0533574a426e727049d2f79426f2a480c7b0b274.tar.gz
sord-0533574a426e727049d2f79426f2a480c7b0b274.tar.bz2
sord-0533574a426e727049d2f79426f2a480c7b0b274.zip
Improve documentation style.
Update to r71/autowaf. git-svn-id: http://svn.drobilla.net/sord/trunk@231 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'wscript')
-rw-r--r--wscript24
1 files changed, 3 insertions, 21 deletions
diff --git a/wscript b/wscript
index 8133ea2..b100134 100644
--- a/wscript
+++ b/wscript
@@ -224,33 +224,15 @@ def build(bld):
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/*.* sord/* src/zix/*.*', 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/SORD_API //' group__sord.html")
- os.system("sed -i 's/SORD_DEPRECATED //' group__sord.html")
- os.system("sed -i 's/href=\"doc\/style.css\"/href=\"style.css\"/' group__sord.html")
- os.remove('index.html')
- os.symlink('group__sord.html', 'index.html')
- os.chdir(top)
- os.chdir(build_dir(ctx, 'doc/man/man3'))
- os.system("sed -i 's/SORD_API //' sord.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/sord/")
def test(ctx):
- blddir = build_dir(ctx, 'tests')
+ blddir = autowaf.build_dir(APPNAME, 'tests')
try:
os.makedirs(blddir)
except: