libsmb: Use smbXcli_conn_use_unicode instead of smb1 specific test
[obnox/samba/samba-obnox.git] / docs-xml / wscript_build
index 56d795f29ccd080aba6aefd47a6d5fd662d8efc1..a75ae055bed1c055936c05d1dffec98784a65a2e 100644 (file)
@@ -1,11 +1,21 @@
 #!/usr/bin/env python
-
+from samba_utils import save_file
 manpages='''
+         manpages/dbwrap_tool.1
          manpages/eventlogadm.8
          manpages/findsmb.1
          manpages/libsmbclient.7
          manpages/lmhosts.5
          manpages/log2pcap.1
+         manpages/idmap_ad.8
+         manpages/idmap_autorid.8
+         manpages/idmap_hash.8
+         manpages/idmap_ldap.8
+         manpages/idmap_nss.8
+         manpages/idmap_rfc2307.8
+         manpages/idmap_rid.8
+         manpages/idmap_tdb.8
+         manpages/idmap_tdb2.8
          manpages/net.8
          manpages/nmbd.8
          manpages/nmblookup.1
@@ -14,8 +24,9 @@ manpages='''
          manpages/profiles.1
          manpages/rpcclient.1
          manpages/samba.7
+         manpages/samba.8
+         manpages/samba-tool.8
          manpages/sharesec.1
-         manpages/smb.conf.5
          manpages/smbcacls.1
          manpages/smbclient.1
          manpages/smbcontrol.1
@@ -38,6 +49,7 @@ manpages='''
          manpages/vfs_aio_linux.8
          manpages/vfs_aio_pthread.8
          manpages/vfs_audit.8
+        manpages/vfs_btrfs.8
          manpages/vfs_cacheprime.8
          manpages/vfs_cap.8
          manpages/vfs_catia.8
@@ -79,12 +91,34 @@ pam_winbind_manpages = '''
 
 krb5_locator_manpages = 'manpages/winbind_krb5_locator.7'
 
+def smbdotconf_generate_parameter_list(task):
+    parameter_all = task.outputs[0].bldpath(task.env)
+    articles = task.inputs
+
+    t = '<section xmlns:xi="http://www.w3.org/2003/XInclude">\n'
+    for article in articles:
+        t += "<xi:include href='file://" + article.abspath(task.env) + "' parse='xml'/>\n"
+    t += "</section>\n"
+    save_file(parameter_all, t , create_dir=True)
+    return 0
+
+def SMBDOTCONF_MANPAGE(bld, target):
+    ''' assemble and build smb.conf.5 manual page'''
+    articles = bld.path.ant_glob("smbdotconf/**/*.xml")
+    parameter_all = 'smbdotconf/parameters.all.xml'
+    bld.SAMBA_GENERATOR(parameter_all,
+                        source=articles,
+                        target=parameter_all,
+                        rule=smbdotconf_generate_parameter_list)
+    bld.SAMBAMANPAGES(target)
+
 if ('XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']):
 
-    bld.MANPAGES(manpages)
+    SMBDOTCONF_MANPAGE(bld, 'manpages/smb.conf.5')
+    bld.SAMBAMANPAGES(manpages)
 
     if bld.CONFIG_SET('WITH_PAM_MODULES') and bld.CONFIG_SET('HAVE_PAM_START'):
-        bld.MANPAGES(pam_winbind_manpages)
+        bld.SAMBAMANPAGES(pam_winbind_manpages)
 
     if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
-        bld.MANPAGES(krb5_locator_manpages)
+        bld.SAMBAMANPAGES(krb5_locator_manpages)