hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r378732 - in /jakarta/hivemind/trunk/support: copyright-java.txt copyright-properties.txt copyright-xml.txt update-copyrights.rb
Date Sat, 18 Feb 2006 15:37:12 GMT
Author: hlship
Date: Sat Feb 18 07:37:10 2006
New Revision: 378732

URL: http://svn.apache.org/viewcvs?rev=378732&view=rev
Log:
Modify the update-copyright script to allow an organization (the owner of the copyright) to
be specified

Modified:
    jakarta/hivemind/trunk/support/copyright-java.txt
    jakarta/hivemind/trunk/support/copyright-properties.txt
    jakarta/hivemind/trunk/support/copyright-xml.txt
    jakarta/hivemind/trunk/support/update-copyrights.rb

Modified: jakarta/hivemind/trunk/support/copyright-java.txt
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/support/copyright-java.txt?rev=378732&r1=378731&r2=378732&view=diff
==============================================================================
--- jakarta/hivemind/trunk/support/copyright-java.txt (original)
+++ jakarta/hivemind/trunk/support/copyright-java.txt Sat Feb 18 07:37:10 2006
@@ -1,4 +1,4 @@
-// Copyright {YEAR} The Apache Software Foundation
+// Copyright {YEAR} {ORG}
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

Modified: jakarta/hivemind/trunk/support/copyright-properties.txt
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/support/copyright-properties.txt?rev=378732&r1=378731&r2=378732&view=diff
==============================================================================
--- jakarta/hivemind/trunk/support/copyright-properties.txt (original)
+++ jakarta/hivemind/trunk/support/copyright-properties.txt Sat Feb 18 07:37:10 2006
@@ -1,4 +1,4 @@
-# Copyright {YEAR} The Apache Software Foundation
+# Copyright {YEAR} {ORG}
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.

Modified: jakarta/hivemind/trunk/support/copyright-xml.txt
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/support/copyright-xml.txt?rev=378732&r1=378731&r2=378732&view=diff
==============================================================================
--- jakarta/hivemind/trunk/support/copyright-xml.txt (original)
+++ jakarta/hivemind/trunk/support/copyright-xml.txt Sat Feb 18 07:37:10 2006
@@ -1,5 +1,5 @@
 <!-- 
-   Copyright {YEAR} The Apache Software Foundation
+   Copyright {YEAR} {ORG}
 
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.

Modified: jakarta/hivemind/trunk/support/update-copyrights.rb
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/support/update-copyrights.rb?rev=378732&r1=378731&r2=378732&view=diff
==============================================================================
--- jakarta/hivemind/trunk/support/update-copyrights.rb (original)
+++ jakarta/hivemind/trunk/support/update-copyrights.rb Sat Feb 18 07:37:10 2006
@@ -18,6 +18,8 @@
 SCRIPT_DIR = File.split(__FILE__)[0]
 YEAR = Time.now.year.to_s
 
+$ORG = "The Apache Software Foundation"
+
 def read_template(file)
   result = []
   
@@ -76,10 +78,10 @@
 end
 
 # Synthesizes a copyright comment block by locating the {YEAR} token
-# and substituting the year paremeter.
+# and substituting the year paremeter, and the {ORG} token with $ORG
 
 def synthesize_copyright(template, year)
-  template.collect { |line| line.sub(/\{YEAR\}/, year) }
+  template.collect { |line| line.sub(/\{YEAR\}/, year).sub(/\{ORG\}/, $ORG) }
 end
 
 class Filter
@@ -269,6 +271,12 @@
 
 $matches = 0
 $update_count = 0
+
+if (ARGV[0] == "-o")
+  ARGV.shift  
+  $ORG = ARGV.shift
+  puts "Using organization '#$ORG'"
+end
 
 Find.find(*ARGV) do |f|
   



---------------------------------------------------------------------
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