You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2017/01/25 18:07:39 UTC
[3/9] lucene-solr:branch_6_4: LUCENE-7543: Treat product name passed
into changes2html.pl case-insensitively,
and validate that the product name is either 'lucene' or 'solr'
LUCENE-7543: Treat product name passed into changes2html.pl case-insensitively, and validate that the product name is either 'lucene' or 'solr'
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/14812fa1
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/14812fa1
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/14812fa1
Branch: refs/heads/branch_6_4
Commit: 14812fa1bcbb7fcf1d1e289f0633fa8ffc9f7dc6
Parents: 79554e8
Author: Steve Rowe <sa...@apache.org>
Authored: Wed Jan 25 13:00:20 2017 -0500
Committer: Steve Rowe <sa...@apache.org>
Committed: Wed Jan 25 13:03:15 2017 -0500
----------------------------------------------------------------------
lucene/site/changes/changes2html.pl | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/14812fa1/lucene/site/changes/changes2html.pl
----------------------------------------------------------------------
diff --git a/lucene/site/changes/changes2html.pl b/lucene/site/changes/changes2html.pl
index 5b866fc..dcdcaa4 100755
--- a/lucene/site/changes/changes2html.pl
+++ b/lucene/site/changes/changes2html.pl
@@ -44,7 +44,11 @@ my @lines = <STDIN>; # Get all input at once
#
# Cmdline args: <LUCENE|SOLR> <project-DOAP-rdf-file> <lucene-javadoc-url>(only from Solr)
#
-my $product = $ARGV[0];
+my $product = uc($ARGV[0]);
+if ($product !~ /^(LUCENE|SOLR)$/) {
+ print STDERR "Unknown product name '$ARGV[0]'\n";
+ exit(1);
+}
my %release_dates = &setup_release_dates($ARGV[1]);
my $lucene_javadoc_url = ($product eq 'SOLR' ? $ARGV[2] : ''); # Only Solr supplies this on the cmdline
my $in_major_component_versions_section = 0;
@@ -825,7 +829,6 @@ sub get_release_date {
sub setup_release_dates {
my %release_dates = ();
my $file = shift;
-print STDERR "file: $file\n";
open(FILE, "<$file") || die "could not open $file: $!";
my $version_list = <FILE>;
my $created_list = <FILE>;