forked from PerlToolsTeam/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard
executable file
·50 lines (35 loc) · 890 Bytes
/
dashboard
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/perl
use strict;
use warnings;
use 5.010;
use File::Basename;
use Getopt::Long;
use Dashboard::App;
my %opt;
if (@ARGV) {
@opt{qw[build gather]} = (0, 0);
GetOptions(\%opt, 'gather', 'build', 'help');
} else {
@opt{qw[build gather]} = (1, 1);
}
if ($opt{help}) {
help();
}
my $app = Dashboard::App->new(%opt);
$app->run;
sub help {
my $me = basename $0;
print <<"EOHELP";
$me [--gather] [--build]
$me --help
$me is the program that generates the CPAN Dashboard web site.
This process is carried out in two stages.
* gather - will gather all of the information about the CPAN modules
that the site is configured to know about
* build - will take the data gathered in the first stage and turn it
into a web site
Usually, you want to run both stages - so that's what happens if you
don't give it any command-line options.
EOHELP
exit;
}