lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1348293 - /lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl
Date Sat, 09 Jun 2012 01:33:13 GMT
Author: rmuir
Date: Sat Jun  9 01:33:12 2012
New Revision: 1348293

URL: http://svn.apache.org/viewvc?rev=1348293&view=rev
Log:
fix changes2html to allow for -ALPHA or -BETA releases

Modified:
    lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl

Modified: lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl?rev=1348293&r1=1348292&r2=1348293&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl (original)
+++ lucene/dev/branches/branch_4x/lucene/site/changes/changes2html.pl Sat Jun  9 01:33:12
2012
@@ -64,7 +64,8 @@ for (my $line_num = 0 ; $line_num <= $#l
   if (/\s*===+\s*(.*?)\s*===+\s*/) {   # New-style release headings
     $release = $1;
     $release =~ s/^(?:release|lucene)\s*//i;  # Trim "Release " or "Lucene " prefix
-    ($release, $relinfo) = ($release =~ /^(\d+(?:\.(?:\d+|[xyz]))*|Trunk)\s*(.*)/i);
+    ($release, $relinfo) = ($release =~ /^(\d+(?:\.(?:\d+(\-ALPHA|\-BETA)?|[xyz]))*|Trunk)\s*(.*)/i);
+    $relinfo =~ s/(\-ALPHA|\-BETA)//;  # Trim -ALPHA or -BETA to only be in release (TODO:
please fix the above regex instead!)
     $relinfo =~ s/\s*:\s*$//;          # Trim trailing colon
     $relinfo =~ s/^\s*,\s*//;          # Trim leading comma
     ($reldate, $relinfo) = get_release_date($release, $relinfo);



Mime
View raw message