summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-10-29 16:43:57 +0100
committergerv%gerv.net <>2002-10-29 16:43:57 +0100
commitdad297316ae335ccc20e5d0546525d1c117131c0 (patch)
tree32ee0d8e77eb8ae137396c894926d25af6255c95 /checksetup.pl
parent5b6b45ec09591f41c42ce66bbd3b2ad4c41dc014 (diff)
downloadbugzilla-dad297316ae335ccc20e5d0546525d1c117131c0.tar.gz
bugzilla-dad297316ae335ccc20e5d0546525d1c117131c0.tar.xz
Bug 173005 - Add bar charts, pie charts etc. to reporting. Patch by gerv; 2xr=joel.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl36
1 files changed, 25 insertions, 11 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 1acec457c..58c2c130f 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -258,25 +258,38 @@ foreach my $module (@{$modules}) {
}
print "\nThe following Perl modules are optional:\n" unless $silent;
-my $charts = 0;
-$charts++ if have_vers("GD","1.19");
-$charts++ if have_vers("Chart::Base","0.99");
-my $xmlparser = have_vers("XML::Parser",0);
+my $gd = have_vers("GD","1.20");
+my $chartbase = have_vers("Chart::Base","0.99");
+my $xmlparser = have_vers("XML::Parser",0);
+my $gdgraph = have_vers("GD::Graph",0);
+my $gdtextalign = have_vers("GD::Text::Align",0);
print "\n" unless $silent;
-if (($charts != 2) && !$silent) {
- print "If you you want to see graphical bug dependency charts, you may install\n",
- "the optional libgd and the Perl modules GD-1.19 and Chart::Base-0.99b, e.g. by\n",
- "running (as root)\n\n",
- " perl -MCPAN -e'install \"LDS/GD-1.19.tar.gz\"'\n",
- " perl -MCPAN -e'install \"N/NI/NINJAZ/Chart-0.99b.tar.gz\"'\n\n";
+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: perl -MCPAN -e'install \"GD\"'\n" if !$gd;
+ print "Chart 0.99b: perl -MCPAN " .
+ "-e'install \"N/NI/NINJAZ/Chart-0.99b.tar.gz\"'\n" if !$chartbase;
+ print "\n";
}
if (!$xmlparser && !$silent) {
print "If you want to use the bug import/export feature to move bugs to or from\n",
"other bugzilla installations, you will need to install the XML::Parser module by\n",
- "running (as root)\n\n",
+ "running (as root):\n\n",
" perl -MCPAN -e'install \"XML::Parser\"'\n\n";
}
+if ((!$gd || !$gdgraph || !$gdtextalign) && !$silent) {
+ print "If you you want to see graphical bug reports (bar, pie and line ";
+ print "charts of \ncurrent data), you should install libgd and the ";
+ print "following Perl modules:\n\n";
+ print "GD: perl -MCPAN -e'install \"GD\"'\n" if !$gd;
+ print "GD::Graph: perl -MCPAN " .
+ "-e'install \"GD::Graph\"'\n" if !$gdgraph;
+ print "GD::Text::Align: perl -MCPAN " .
+ "-e'install \"GD::Text::Align\"'\n" if !$gdtextalign;
+ print "\n";
+}
if (%missing) {
print "\n\n";
print "Bugzilla requires some Perl modules which are either missing from your\n",
@@ -580,6 +593,7 @@ $contenttypes = {
"xml" => "text/xml" ,
"js" => "application/x-javascript" ,
"csv" => "text/plain" ,
+ "png" => "image/png" ,
};
');