Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[web/build-project-list.pl] copy icons
The icons are now copied over to the output directory along with the
generated index.html file.
  • Loading branch information
Carl Masak committed May 8, 2010
1 parent 8456ce7 commit 09f011c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/build-project-list.pl
Expand Up @@ -9,6 +9,7 @@
use HTML::Template;

my $output_dir = shift(@ARGV) || './';
my @MEDALS = qw<fresh medal readme tests unachieved>;
binmode STDOUT, ':encoding(UTF-8)';

local $| = 1;
Expand Down Expand Up @@ -72,6 +73,9 @@
die "Too many errors no output generated"
if $stats->{failed} > $stats->{success};

unless ($output_dir eq './') {
system("cp $_.png $output_dir") for @MEDALS;
}
spew( $output_dir . 'index.html', get_html_list($projects) );
spew( $output_dir . 'proto.json', get_json($projects) );

Expand Down

0 comments on commit 09f011c

Please sign in to comment.