pidl/wscript: call pod2man with the detected perl version
authorStefan Metzmacher <metze@samba.org>
Thu, 17 Jun 2010 06:44:53 +0000 (08:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Jun 2010 07:11:57 +0000 (09:11 +0200)
Some systems like SLES11 have a broken perl path in pod2man.

metze

pidl/wscript

index 0c3c4150b075e8b88a1aa5c73df1d6e0ea6ac103..cdba69210f6f510bfc310a85e490930072aedeb5 100644 (file)
@@ -15,6 +15,7 @@ def configure(conf):
 
     # yapp is used for building the parser
     conf.find_program('yapp', var='YAPP')
+    conf.find_program('pod2man', var='POD2MAN')
 
 def build(bld):
     bld.INSTALL_FILES('${BINDIR}', 'pidl', chmod=0755)
@@ -48,7 +49,7 @@ def build(bld):
     
     bld.SET_BUILD_GROUP('main')
     for src, manpage in pidl_manpages.iteritems():
-        bld(rule='pod2man -c "Samba Documentation" ${SRC} ${TGT}', 
+        bld(rule='${PERL} ${POD2MAN} -c "Samba Documentation" ${SRC} ${TGT}',
             shell=True,
             source=src,
             install_path=os.path.dirname(bld.EXPAND_VARIABLES('${MANDIR}/'+manpage)),