diff options
author | David Robillard <d@drobilla.net> | 2011-05-24 19:44:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-24 19:44:29 +0000 |
commit | d465088da650b9686163da30ba2637e9b2714409 (patch) | |
tree | b6d5c65a6807194410228d470cab63c904bd09bb /wscript | |
parent | 626062cea81bdd7e7ce51c7c4b8e250942d16dd2 (diff) | |
download | suil-d465088da650b9686163da30ba2637e9b2714409.tar.gz suil-d465088da650b9686163da30ba2637e9b2714409.tar.bz2 suil-d465088da650b9686163da30ba2637e9b2714409.zip |
Automatically fix up documentation on build
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3314 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -108,15 +108,21 @@ def build(bld): autowaf.build_dox(bld, 'SUIL', SUIL_VERSION, top, out) bld.add_post_fun(autowaf.run_ldconfig) + if bld.env['DOCS']: + bld.add_post_fun(fix_docs) def fix_docs(ctx): try: + top = os.getcwd() 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') + os.chdir(top) + os.chdir('build/doc/man/man3') + os.system("sed -i 's/SUIL_API //' suil.3") except Exception, e: Logs.error("Failed to fix up Doxygen documentation (%s)\n" % e) |