summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-16 01:19:55 +0000
committerDavid Robillard <d@drobilla.net>2011-05-16 01:19:55 +0000
commit88e22de251ab13e2081662ce008964812225a74a (patch)
treec2492d3d244f610199a41c7056648ad32b504217 /wscript
parent41b62398d39accc4289c7f19a001aa2dfef2dedb (diff)
downloadlilv-88e22de251ab13e2081662ce008964812225a74a.tar.gz
lilv-88e22de251ab13e2081662ce008964812225a74a.tar.bz2
lilv-88e22de251ab13e2081662ce008964812225a74a.zip
Install man pages and strip LILV_API from lilv man page
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3265 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 8 insertions, 1 deletions
diff --git a/wscript b/wscript
index 879b0e0..d68fd88 100644
--- a/wscript
+++ b/wscript
@@ -5,6 +5,7 @@ import subprocess
from waflib.extras import autowaf as autowaf
import waflib.Options as Options
+import waflib.Logs as Logs
# Version of this package (even if built as a child)
LILV_VERSION = '0.0.0'
@@ -258,6 +259,9 @@ def build(bld):
# Documentation
autowaf.build_dox(bld, 'LILV', LILV_VERSION, top, out)
+ # Man pages
+ bld.install_files('${MANDIR}/man1', bld.path.ant_glob('doc/*.1'))
+
# Bash completion
if bld.env['BASH_COMPLETION']:
bld.install_as(
@@ -280,12 +284,15 @@ def build(bld):
def fix_docs(ctx):
try:
+ top = os.getcwd()
os.chdir('build/doc/html')
os.system("sed -i 's/LILV_API //' group__lilv.html")
- os.system("sed -i 's/LILV_DEPRECATED //' group__lilv.html")
os.remove('index.html')
os.symlink('group__lilv.html',
'index.html')
+ os.chdir(top)
+ os.chdir('build/doc/man/man3')
+ os.system("sed -i 's/LILV_API //' lilv.3")
except Exception, e:
Logs.error("Failed to fix up Doxygen documentation (%s)\n" % e)