# This is a little bit (hah!) DWIMish, but still very handy.
use File::Find;
-BEGIN { push @INC, "debian", "/usr/lib/debhelper" }
+BEGIN { push @INC, "debian", "/usr/share/debhelper" }
use Dh_Lib;
init();
return;
}
foreach $dir (@allpackages) {
- if ($File::Find::dir=~m:debian/$dir:) {
+ if ($File::Find::dir=~m:debian/\Q$dir\E:) {
return;
}
}
# And file does think it's a real man page?
- my $type=`file $_`;
+ my $type=`file -z $_`;
if ($type !~ m/:.*roff/) {
return;
}