pkgsrc/print/foomatic4-db-engine/patches/patch-makeMan.in
marino f1f7c8fc68 print/foomatic4-db-engine: Fix man page generation on DragonFly(+)
The perl man page generation script has an unnecessary file type check
that causes no man pages to be generated on DragonFly and possibly other
platforms.

After properly identifying the template file, it checks to see if it's type
nroff, troff, or groff.  On DragonFly it is type "ASCII".  Just skip the
check completely, the templates were extracted from the verified tarball.
2012-05-22 15:46:54 +00:00

13 lines
508 B
Text

$NetBSD: patch-makeMan.in,v 1.1 2012/05/22 15:46:55 marino Exp $
--- makeMan.in.orig 2011-07-25 09:51:20.000000000 +0000
+++ makeMan.in
@@ -31,8 +31,6 @@ foreach my $file (@files)
$append = "discard\n";
next unless -f $file and $file =~ /^(.*\.[1-9])\.in$/;
my ($man) = $1;
- next unless ((`file $file` =~ m/\b[ntg]roff\b/) or
- (`file $file` =~ m/\[nt\]roff/));
print STDERR "MATCHED\n" if $VERBOSE;
$append = '';
open IN, "<$file" or (warn "Can't read input file $file!" and next FILE);