aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-24 19:44:40 +0000
committerDavid Robillard <d@drobilla.net>2011-05-24 19:44:40 +0000
commit260902f9a30dc254bf1c139e3fc097da2a69264b (patch)
tree5afa226f4c2916690a97fbd9c85005b8874d7569
parent92fe7781dc025b4f6a7d0c5c3ad891c48740e14a (diff)
downloadserd-260902f9a30dc254bf1c139e3fc097da2a69264b.tar.gz
serd-260902f9a30dc254bf1c139e3fc097da2a69264b.tar.bz2
serd-260902f9a30dc254bf1c139e3fc097da2a69264b.zip
Automatically fix up documentation on build
git-svn-id: http://svn.drobilla.net/serd/trunk@196 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/wscript b/wscript
index b0a8b897..d0b3d2cf 100644
--- a/wscript
+++ b/wscript
@@ -126,6 +126,8 @@ def build(bld):
bld.install_files('${MANDIR}/man1', 'doc/serdi.1')
bld.add_post_fun(autowaf.run_ldconfig)
+ if bld.env['DOCS']:
+ bld.add_post_fun(fix_docs)
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/* serd/*', shell=True)
@@ -159,12 +161,16 @@ def amalgamate(ctx):
def fix_docs(ctx):
try:
+ top = os.getcwd()
os.chdir('build/doc/html')
os.system("sed -i 's/SERD_API //' group__serd.html")
os.system("sed -i 's/SERD_DEPRECATED //' group__serd.html")
os.remove('index.html')
os.symlink('group__serd.html',
'index.html')
+ os.chdir(top)
+ os.chdir('build/doc/man/man3')
+ os.system("sed -i 's/SERD_API //' serd.3")
except Exception, e:
Logs.error("Failed to fix up Doxygen documentation (%s)\n" % e)