diff options
author | Mathieu Parent <math.parent@gmail.com> | 2018-05-01 21:59:23 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-05-12 02:09:28 +0200 |
commit | d4bbff5ce5705f877be326f32631b466daec5aed (patch) | |
tree | d50095c7437e148df6089645366d4b2dbac14610 /pidl | |
parent | 15d2f4f8178e9cd10deaace19268b0659806340a (diff) | |
download | samba-d4bbff5ce5705f877be326f32631b466daec5aed.tar.gz |
Fix pidl manpage sections
.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>
Diffstat (limited to 'pidl')
-rw-r--r-- | pidl/wscript | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pidl/wscript b/pidl/wscript index f4ff902812c..45cb17cea10 100644 --- a/pidl/wscript +++ b/pidl/wscript @@ -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)), |