[SCM] Samba Shared Repository - branch master updated

Jelmer Vernooij jelmer at samba.org
Mon May 24 09:32:10 MDT 2010


The branch, master has been updated
       via  a042e24... ldb-waf: Install manual pages for ldb in standalone build, install python module.
      from  1d66cb0... s4:winbind Give more detail on the parameters when reporting idmap failure

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit a042e2413797965f85e9ae5099a0ac628418fcea
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Mon May 24 17:25:34 2010 +0200

    ldb-waf: Install manual pages for ldb in standalone build, install
    python module.

-----------------------------------------------------------------------

Summary of changes:
 source4/lib/ldb/wscript |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index b135034..32ae58a 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):


-- 
Samba Shared Repository


More information about the samba-cvs mailing list