Completely fix util/new-copyright-year.

This commit is contained in:
Daniel Nichter
2013-12-18 23:11:05 +00:00
parent 540a625f6f
commit 157226dec7

View File

@@ -11,16 +11,16 @@ eval {
my $new_copyright;
if ( $first_year && $last_year ) {
$new_copyright = "$first_year-$year Percona Ireland Ltd"
$new_copyright = "$first_year-$year Percona LLC and/or its affiliates"
}
elsif ( $first_year < $year ) {
$new_copyright = "$first_year-$year Percona Ireland Ltd"
$new_copyright = "$first_year-$year Percona LLC and/or its affiliates"
}
else {
$new_copyright = "$first_year Percona Ireland Ltd"
$new_copyright = "$first_year Percona LLC and/or its affiliates"
}
$copyright =~ s/\S+ Percona Ireland Ltd/$new_copyright/;
$copyright =~ s/\S+ Percona LLC and\/or its affiliates/$new_copyright/;
print $copyright;
};
die $EVAL_ERROR if $EVAL_ERROR;