From 260902f9a30dc254bf1c139e3fc097da2a69264b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 May 2011 19:44:40 +0000 Subject: Automatically fix up documentation on build git-svn-id: http://svn.drobilla.net/serd/trunk@196 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wscript') 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) -- cgit v1.2.1