summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2004-03-30 23:25:24 +0200
committerjustdave%syndicomm.com <>2004-03-30 23:25:24 +0200
commit2d784a773f21dd8eaf90edff7e3c49f1d242fd5d (patch)
treee64da5b2c9fa3a146eb7fccbb62028a140a8d144 /checksetup.pl
parentd17e6ee16e71f3c4e48cc27451ba5365cbedda50 (diff)
downloadbugzilla-2d784a773f21dd8eaf90edff7e3c49f1d242fd5d.tar.gz
bugzilla-2d784a773f21dd8eaf90edff7e3c49f1d242fd5d.tar.xz
Bug 237508: Have checksetup.pl specify which perl to use (the same one it's running under) when giving instructions how to use CPAN to install needed modules.
r= jouni, a= justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/checksetup.pl b/checksetup.pl
index f2e14bf34..4efbc2cf4 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -272,6 +272,7 @@ my $modules = [
my %ppm_modules = (
'AppConfig' => 'AppConfig',
+ 'Chart::Base' => 'Chart',
'CGI' => 'CGI',
'Data::Dumper' => 'Data-Dumper',
'Date::Format' => 'TimeDate',
@@ -290,7 +291,7 @@ sub install_command {
return "ppm install " . $ppm_modules{$module} if exists $ppm_modules{$module};
return "ppm install " . $module;
} else {
- return "perl -MCPAN -e 'install \"$module\"'";
+ return "$^X -MCPAN -e 'install \"$module\"'";
}
}
@@ -330,8 +331,7 @@ if ((!$gd || !$chartbase) && !$silent) {
print "If you you want to see graphical bug charts (plotting historical ";
print "data over \ntime), you should install libgd and the following Perl "; print "modules:\n\n";
print "GD: " . install_command("GD") ."\n" if !$gd;
- print "Chart 0.99b: perl -MCPAN " .
- "-e'install \"N/NI/NINJAZ/Chart-0.99b.tar.gz\"'\n" if !$chartbase;
+ print "Chart 0.99b: " . install_command("Chart::Base") . "\n" if !$chartbase;
print "\n";
}
if (!$xmlparser && !$silent) {