summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-05-24 17:25:34 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-05-24 17:31:43 +0200
commita042e2413797965f85e9ae5099a0ac628418fcea (patch)
treeb3951072ed56d690f1d64930dc33da33a756241b /source4/lib/ldb
parent1d66cb0e204fa5527f35f58d82bda8b7850e7118 (diff)
downloadsamba-a042e2413797965f85e9ae5099a0ac628418fcea.tar.gz
samba-a042e2413797965f85e9ae5099a0ac628418fcea.tar.bz2
samba-a042e2413797965f85e9ae5099a0ac628418fcea.zip
ldb-waf: Install manual pages for ldb in standalone build, install
python module.
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/wscript27
1 files changed, 23 insertions, 4 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index b135034ade..32ae58a6b6 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -45,6 +45,10 @@ def configure(conf):
onlyif='talloc tdb tevent',
implied_deps='replace talloc tdb tevent'):
conf.define('USING_SYSTEM_LDB', 1)
+
+ if conf.env.standalone_ldb:
+ conf.find_program('xsltproc', var='XSLTPROC')
+
# we need this for the ldap backend
if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
conf.env.ENABLE_LDAP_BACKEND = True
@@ -178,10 +182,25 @@ def build(bld):
# ldbtest doesn't get installed
bld.SAMBA_BINARY('ldbtest', 'tools/ldbtest.c', deps='LIBLDB_CMDLINE', install=False)
- if s4_build:
- bld.SAMBA_PYTHON('pyldb', 'pyldb.c',
- deps='ldb',
- realname='ldb.so')
+ bld.SAMBA_PYTHON('pyldb', 'pyldb.c',
+ deps='ldb',
+ realname='ldb.so')
+
+ if bld.env.XSLTPROC:
+ manpages = 'man/ad2oLschema.1 man/ldb.3 man/ldbadd.1 man/ldbdel.1 ' \
+ 'man/ldbedit.1 man/ldbmodify.1 man/ldbrename.1 ' \
+ 'man/ldbsearch.1 man/oLschema2ldif.1'
+
+ bld.env.LDB_MAN_XSL = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
+
+ for m in manpages.split():
+ source = m + '.xml'
+ bld.SAMBA_GENERATOR(m,
+ source=source,
+ target=m,
+ rule='${XSLTPROC} -o ${TGT} ${LDB_MAN_XSL} ${SRC}'
+ )
+ bld.INSTALL_FILES('${MANDIR}/man1 ${MANDIR}/man3', m, flat=True)
def test(ctx):