freebsd-ports/textproc/makepatch/files/patch-makepatch.PL
Anton Berezin 53cb146de0 Bug fix (Perl on FreeBSD does not support -T and -B tests on a
filehandle;  do not use them).

PR:		31848
Submitted by:	maintainer
2001-11-18 22:54:13 +00:00

22 lines
516 B
Perl

--- makepatch.PL Sun Dec 6 09:04:51 1998
+++ makepatch.PL.new Mon Nov 5 19:47:17 2001
@@ -670,11 +670,14 @@
$skipped++;
return 0;
}
- if ( -B $fh ) {
- verbose ("WARNING: Binary file $new -- skipped\n");
- $skipped++;
- return 0;
- }
+# Binary/Text test on filehandle makes no sense (and causes failure)
+# on FreeBSD
+#
+# if ( -B $fh ) {
+# verbose ("WARNING: Binary file $new -- skipped\n");
+# $skipped++;
+# return 0;
+# }
my $pos = $fh->getpos;
while ( <$fh> ) {
$lines++;