YangXiangGcc / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

[patch] pod2man invocations #327

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

With Debian perl 5.20.2-6, it's required to set a name for manpages, or pod2man 
will fail.

$ pod2man <genpyt.pod >genpyt.1
IO::File=IO(0x1bfe790) around line 1: No name given for document
POD document had syntax errors at /usr/bin/pod2man line 71.

It's better to do
$ pod2man genpyt.pod genpyt.1

Patch attached.

Regards,
Yixuan

diff --git a/man/SConscript b/man/SConscript
index f3ebd03..e1551eb 100644
--- a/man/SConscript
+++ b/man/SConscript
@@ -1,7 +1,7 @@
 import os
 Import('env')

-pod2man = Builder(action = 'pod2man < $SOURCE > $TARGET')
+pod2man = Builder(action = 'pod2man $SOURCE $TARGET')
 env.Append(BUILDERS = {'Man': pod2man})

 env.Man('mmseg.1', 'mmseg.pod')

Original issue reported on code.google.com by culu....@gmail.com on 5 Jul 2015 at 7:29

Attachments:

GoogleCodeExporter commented 8 years ago
Link to original bug report: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790287

Original comment by culu....@gmail.com on 5 Jul 2015 at 7:37