hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r367743 - in /jakarta/hivemind/branches/branch-1-1: .cvsignore examples/.cvsignore framework/.cvsignore hivebuild/.cvsignore jmx/.cvsignore library/.cvsignore support/update-copyrights.rb
Date Tue, 10 Jan 2006 19:16:55 GMT
Author: hlship
Date: Tue Jan 10 11:16:51 2006
New Revision: 367743

URL: http://svn.apache.org/viewcvs?rev=367743&view=rev
Log:
Change update-copyrights.rb to NOT force the current year into the copyright comment block.
The current year is added only when no copyright comment block exists.

Removed:
    jakarta/hivemind/branches/branch-1-1/.cvsignore
    jakarta/hivemind/branches/branch-1-1/examples/.cvsignore
    jakarta/hivemind/branches/branch-1-1/framework/.cvsignore
    jakarta/hivemind/branches/branch-1-1/hivebuild/.cvsignore
    jakarta/hivemind/branches/branch-1-1/jmx/.cvsignore
    jakarta/hivemind/branches/branch-1-1/library/.cvsignore
Modified:
    jakarta/hivemind/branches/branch-1-1/support/update-copyrights.rb

Modified: jakarta/hivemind/branches/branch-1-1/support/update-copyrights.rb
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/branches/branch-1-1/support/update-copyrights.rb?rev=367743&r1=367742&r2=367743&view=diff
==============================================================================
--- jakarta/hivemind/branches/branch-1-1/support/update-copyrights.rb (original)
+++ jakarta/hivemind/branches/branch-1-1/support/update-copyrights.rb Tue Jan 10 11:16:51
2006
@@ -45,14 +45,6 @@
   File.rename(temp, path)
 end
 
-# Constructs a final year sequence.  The year parameter is the text
-# parsed from an existing comment block.  If YEAR is not present,
-# it is appended (after a comma).
-
-def construct_year(year)
-  year.index(YEAR) == nil ? "#{year}, #{YEAR}" : year
-end
-
 # Scans the content (which should be the complete file)
 # for the copyright year.  Returns the year, which
 # may be as single year ("2004") or a sequence of
@@ -69,7 +61,7 @@
       
       if line =~ /copyright ((\d+)(\s*,\s*\d+)*)/i
         then
-        return construct_year($1)
+        return $1
       end
       
     end
@@ -182,7 +174,7 @@
     
     content.each do |line|
       if line =~ /Copyright ((\d+)(\s*,\s*\d+)*)/
-        return construct_year($1)
+        return $1
       elsif document_start?(line)
         return YEAR
       end



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message