[macruby-changes] [3308] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 19 17:54:18 PST 2010


Revision: 3308
          http://trac.macosforge.org/projects/ruby/changeset/3308
Author:   ernest.prabhakar at gmail.com
Date:     2010-01-19 17:54:16 -0800 (Tue, 19 Jan 2010)
Log Message:
-----------
Added newer copyright for bin files

Modified Paths:
--------------
    MacRuby/trunk/bin/rb_nibtool
    MacRuby/trunk/bin/ruby_deploy
    MacRuby/trunk/bin/rubyc
    MacRuby/trunk/tool/update_copyrights.ruby

Modified: MacRuby/trunk/bin/rb_nibtool
===================================================================
--- MacRuby/trunk/bin/rb_nibtool	2010-01-20 01:54:14 UTC (rev 3307)
+++ MacRuby/trunk/bin/rb_nibtool	2010-01-20 01:54:16 UTC (rev 3308)
@@ -4,7 +4,7 @@
 #
 # This file is covered by the Ruby license.
 #
-# Copyright (C) 2008-2009, Apple Inc
+# Copyright (C) 2008-2010, Apple Inc
 
 require 'optparse'
 require 'ripper/filter'

Modified: MacRuby/trunk/bin/ruby_deploy
===================================================================
--- MacRuby/trunk/bin/ruby_deploy	2010-01-20 01:54:14 UTC (rev 3307)
+++ MacRuby/trunk/bin/ruby_deploy	2010-01-20 01:54:16 UTC (rev 3308)
@@ -3,7 +3,7 @@
 #
 # This file is covered by the Ruby license.
 #
-# Copyright (C) 2009, Apple Inc
+# Copyright (C) 2009-2010, Apple Inc
 
 require 'optparse'
 require 'rbconfig'

Modified: MacRuby/trunk/bin/rubyc
===================================================================
--- MacRuby/trunk/bin/rubyc	2010-01-20 01:54:14 UTC (rev 3307)
+++ MacRuby/trunk/bin/rubyc	2010-01-20 01:54:16 UTC (rev 3308)
@@ -3,7 +3,7 @@
 #
 # This file is covered by the Ruby license.
 #
-# Copyright (C) 2009, Apple Inc
+# Copyright (C) 2009-2010, Apple Inc
 
 require 'optparse'
 require 'rbconfig'

Modified: MacRuby/trunk/tool/update_copyrights.ruby
===================================================================
--- MacRuby/trunk/tool/update_copyrights.ruby	2010-01-20 01:54:14 UTC (rev 3307)
+++ MacRuby/trunk/tool/update_copyrights.ruby	2010-01-20 01:54:16 UTC (rev 3308)
@@ -2,7 +2,7 @@
 require 'pp'
 LAST_YEAR=2009
 NEXT_YEAR=2010
-GREP="grep -il 'Copyright.*Apple'"
+GREP="grep -il 'Copyright.*#{LAST_YEAR}.*Apple'"
 REPLACE="-e '/Copyright/ s^\-2009, Apple^\-2010, Apple^' -e '/Copyright/ s^2009, Apple^2009\-2010, Apple^'"
 BACKUP = "sedsave"
 
@@ -10,10 +10,12 @@
 %w(rb c cpp h m).each do |ext|
   files += `find . -name "*.#{ext}" -print0 | xargs -0 #{GREP}`.split "\n"
 end
+files += `#{GREP} bin/*`.split "\n"
+pp files
 p "Found #{files.size} copyrights to update"
 files.each do |file|
   p "Updating copyright of #{file}"
   `sed -i #{BACKUP} #{REPLACE} #{file}`
 end
 p "Removing backups"
-`find . -name "*.*#{BACKUP}" -delete`
+`find . -name "*#{BACKUP}" -delete`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100119/882709aa/attachment-0001.html>


More information about the macruby-changes mailing list