diff options
author | David Robillard <d@drobilla.net> | 2011-05-24 19:45:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-24 19:45:14 +0000 |
commit | e3b01ec7c1b30b4a3b4bcfb34a77d66cf7e905f2 (patch) | |
tree | 4118faaa22417f89cde4367fa3446a69d16be504 /wscript | |
parent | 6edff46e596289ada2a262be18b394b92bbff3f0 (diff) | |
download | sord-e3b01ec7c1b30b4a3b4bcfb34a77d66cf7e905f2.tar.gz sord-e3b01ec7c1b30b4a3b4bcfb34a77d66cf7e905f2.tar.bz2 sord-e3b01ec7c1b30b4a3b4bcfb34a77d66cf7e905f2.zip |
Automatically fix up documentation on build
git-svn-id: http://svn.drobilla.net/sord/trunk@135 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -166,15 +166,21 @@ def build(bld): autowaf.build_dox(bld, 'SORD', SORD_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/SORD_API //' group__sord.html") os.system("sed -i 's/SORD_DEPRECATED //' group__sord.html") os.remove('index.html') os.symlink('group__sord.html', 'index.html') + os.chdir(top) + os.chdir('build/doc/man/man3') + os.system("sed -i 's/SORD_API //' sord.3") except Exception, e: Logs.error("Failed to fix up Doxygen documentation (%s)\n" % e) |