From 3f293db2c24feabd86299186fe467ffd9cf1fc9d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Mar 2011 20:14:53 +0000 Subject: Add waf fixdocs to strip decorators from doxygen documentation. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3112 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wscript b/wscript index b5b0c9c..fc3adbc 100644 --- a/wscript +++ b/wscript @@ -280,12 +280,13 @@ def build(bld): def fixdocs(ctx): try: - os.system("sed -i 's/SLV2_API //' build/doc/html/group__slv2.html") - os.system("sed -i 's/SLV2_DEPRECATED //' build/doc/html/group__slv2.html") - os.remove('build/doc/html/index.html') - os.symlink('build/doc/html/group__slv2.html', - 'build/doc/html/index.html') - except: + os.chdir('build/doc/html') + os.system("sed -i 's/SLV2_API //' group__slv2.html") + os.system("sed -i 's/SLV2_DEPRECATED //' group__slv2.html") + os.remove('index.html') + os.symlink('group__slv2.html', + 'index.html') + except Exception as e: Logs.error("Failed to fix up Doxygen documentation\n") def test(ctx): -- cgit v1.2.1