Fix pidl manpage sections
authorMathieu Parent <math.parent@gmail.com>
Tue, 1 May 2018 19:59:23 +0000 (21:59 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 12 May 2018 00:09:28 +0000 (02:09 +0200)
.TH header should match file name (i.e 3pm and not 3 for Parse::Pidl::NDR).

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
pidl/wscript

index f4ff902812c764c2012d7edb375da31a8baedf73..45cb17cea10fe48ccf7f4a9e7716f5e4c0f863ce 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-import os, Logs
+import os, string, Logs
 from samba_utils import MODE_755
 
 # This function checks if a perl module is installed on the system.
@@ -67,7 +67,8 @@ def build(bld):
     bld.SET_BUILD_GROUP('final')
     if 'POD2MAN' in bld.env and bld.env['POD2MAN'] != '':
         for src, manpage in pidl_manpages.iteritems():
-            bld(rule='${POD2MAN} -c "Samba Documentation" ${SRC} ${TGT}',
+            section = string.rsplit(manpage, ".", 1)[1]
+            bld(rule='${POD2MAN} -c "Samba Documentation" -s %s ${SRC} ${TGT}' % section,
                 shell=True,
                 source=src,
                 install_path=os.path.dirname(bld.EXPAND_VARIABLES('${MANDIR}/'+manpage)),