]> git.donarmstrong.com Git - debhelper.git/commitdiff
r384: ugh
authorjoey <joey>
Tue, 7 Nov 2000 23:56:05 +0000 (23:56 +0000)
committerjoey <joey>
Tue, 7 Nov 2000 23:56:05 +0000 (23:56 +0000)
dh_perl
dh_perl.1

diff --git a/dh_perl b/dh_perl
index 1220e083f616a940b68a98a096b98edb417a8eef..a3372d5a371621aa5026eef7a328bddd45ab4df2 100755 (executable)
--- a/dh_perl
+++ b/dh_perl
@@ -13,7 +13,9 @@ my $lib_dir = 'usr/lib/perl5';
 # it points to, otherwise query perl directly.
 my $version=sprintf("%.3f", $]);
 if (defined $ENV{PERL}) {
-       $version=`$ENV{PERL} -e 'printf "%.3f", \$]'`;
+       # This is pretty gawd-aweful ugly, because we need "5.00[45]"
+       # and "5.[6789]" to be returned.
+       $version=`$ENV{PERL} -e '\$] < 5.006 ? printf "%.3f", \$] : printf "%vd\n", substr \$^V, 0, -1'`;
 }
 
 # Cleaning the paths given on the command line
index 9f8bef8c05a0fb9eb77ae483347f6158017fdc44..1a8ee3b8609e6dafc3fad2b4e0fe62abc5f23bd0 100644 (file)
--- a/dh_perl.1
+++ b/dh_perl.1
@@ -10,9 +10,9 @@ the perl:Depends substitutions and adding them to substvars files.
 .P
 The program will look for the location of installed modules and will
 use this information to generate a dependency (at the present time
-it can only be perl5, perl5-thread, perl-5.00X or perl-5.00X-thread).
-The dependancy will be substituted into your package's control file wherever
-you place the token "${perl:Depends}".
+it can only be perl5, perl5-thread, perl-5.X or perl-5.X-thread).
+The dependancy will be substituted into your package's control file
+wherever you place the token "${perl:Depends}".
 .P
 It will also look at #! lines of perl scripts in order to be able
 to calculate a dependency for perl scripts and not only perl modules.
@@ -33,14 +33,14 @@ Keep .packlist files.
 .TP
 .B -d
 In some specific cases you may want to depend on a -base package
-(ie perl-5.00X-base or perl5-base). If so, you can pass
+(ie perl-5.6-base or perl5-base). If so, you can pass
 the -d option to make
 .BR dh_perl
 generate a dependency on the correct base package. This is only necessary
 for some modules that are included in the base system.
 .TP
 .B library dirs
-If your package does install perl modules in non-standard
+If your package installs perl modules in non-standard
 directories, you can make
 .BR dh_perl
 check those directories by passing their names on the command line.