summaryrefslogtreecommitdiff
path: root/dh_perl
diff options
context:
space:
mode:
authorjoey <joey>2002-08-18 05:46:40 +0000
committerjoey <joey>2002-08-18 05:46:40 +0000
commit0d0609d0225291aa9badde5be1f633bcc55c2ccd (patch)
tree717a723320522f80d3ce0d3659f0ab6903cb2dd9 /dh_perl
parent99a3ec036f753431d19b2032ab9d978a269b85b2 (diff)
r543: * Patch from Andrew Suffield to make dh_perl understand #!/usr/bin/env perl
Closes: #156243
Diffstat (limited to 'dh_perl')
-rwxr-xr-xdh_perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_perl b/dh_perl
index a40c6fd5..e9a001d9 100755
--- a/dh_perl
+++ b/dh_perl
@@ -106,7 +106,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
return unless -f and (-x or /\.pl$/);
local *F;
return unless open F, $_;
- if (read F, local $_, 32 and m%^#!\s*/usr/bin/perl\s%) {
+ if (read F, local $_, 32 and m%^#!\s*(/usr/bin/perl|/usr/bin/env\s+perl)\s%) {
$deps |= PROGRAM;
}
close F;