diff options
author | joey <joey> | 1999-08-17 05:15:51 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 05:15:51 +0000 |
commit | e66a391f8008517c4c31873e9279a265aae0f180 (patch) | |
tree | 382a69f5da6467a555f997c570434b70222f09c2 | |
parent | 1245fb187e6f19f0a4c93d2d67fd13632e97a0e6 (diff) | |
download | debhelper-e66a391f8008517c4c31873e9279a265aae0f180.tar.gz |
r220: Initial Import
-rw-r--r-- | debian/changelog | 7 | ||||
-rwxr-xr-x | dh_perl | 12 |
2 files changed, 16 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog index 52ae7f35..8d402a73 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (1.2.80) unstable; urgency=low + + * Changed perl version detection. + * Changed call to find. + + -- Joey Hess <joeyh@master.debian.org> Thu, 24 Jun 1999 16:48:53 -0700 + debhelper (1.2.79) unstable; urgency=low * Added dh_perl by Raphael Hertzog <rhertzog@hrnet.fr>. dh_perl handles @@ -7,8 +7,14 @@ BEGIN { push @INC, "debian", "/usr/lib/debhelper" } use Dh_Lib; init(); -my $perl = $ENV{'PERL'} || '/usr/bin/perl'; -$version=sprintf("%.3f", $]); +my $perl = $ENV{PERL} || '/usr/bin/perl'; + +# Figure out the version of perl. If $ENV{PERL} is set, query the perl binary +# it points to, otherwise query perl directly. +my $version=sprintf("%.3f", $]); +if (defined $ENV{PERL}) { + $version=`$ENV{PERL} -e 'printf "%.3f", \$]'`; +} foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $TMP=tmpdir($PACKAGE); @@ -21,7 +27,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { # Look for perl modules and check where they are installed if (-d "$TMP/usr/lib/perl5") { - foreach $file (split(/\n/,`find $TMP/usr/lib/perl5 -type f -name "*.pm"`)) { + foreach $file (split(/\n/,`find $TMP/usr/lib/perl5 -type f \\( -name "*.pm" -or -name "*.so" \\)`)) { $found++; if ($file =~ m<^$TMP/usr/lib/perl5/(\d\.\d{3})/([^/]+)/>) { $v = $1; |