Kill roff file check with `file' command.
Some platform does not have `file' utility, others does not recognize `roff' format as PR 46245. For this package, all wildcard matched files are 'roff' man source files, so it is safe to skip this check.
This commit is contained in:
parent
c88c373e3f
commit
0e5113fc8d
2 changed files with 18 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
$NetBSD: distinfo,v 1.4 2012/03/23 11:00:14 obache Exp $
|
||||
$NetBSD: distinfo,v 1.5 2012/03/23 11:26:18 obache Exp $
|
||||
|
||||
SHA1 (foomatic-filters-3.0.2.tar.gz) = 6d949949f432212632c704904272bc32f287b577
|
||||
RMD160 (foomatic-filters-3.0.2.tar.gz) = 612529ea462f7f1500f30ffed4aec105b410936c
|
||||
Size (foomatic-filters-3.0.2.tar.gz) = 125875 bytes
|
||||
SHA1 (patch-aa) = 4b471d5fec7147d82eba47512bf851ed0b9d97a3
|
||||
SHA1 (patch-makeMan.in) = 2e317a37ae0f605f57a15555003b09dcc4b53f79
|
||||
|
|
16
print/foomatic-filters/patches/patch-makeMan.in
Normal file
16
print/foomatic-filters/patches/patch-makeMan.in
Normal file
|
@ -0,0 +1,16 @@
|
|||
$NetBSD: patch-makeMan.in,v 1.1 2012/03/23 11:26:18 obache Exp $
|
||||
|
||||
* some platfoms does not have `file' utilty, others does not recognize such
|
||||
files as `roff'.
|
||||
|
||||
--- makeMan.in.orig 2004-01-22 03:42:35.000000000 +0000
|
||||
+++ makeMan.in
|
||||
@@ -29,8 +29,6 @@ foreach my $file (@files)
|
||||
next unless -f $file and $file =~ /^(.*\.[1-9])\.in$/;
|
||||
my ($man) = $1;
|
||||
$man =~ s,.*/,,;
|
||||
- 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);
|
Loading…
Reference in a new issue