From 9e105270099a0e8e44612cf58488a5013a846698 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Tue, 24 Jul 2012 19:00:19 -0700 Subject: [PATCH] If we ever need to do weird license header manipulation again --- bin/license_replacer.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/license_replacer.rb diff --git a/bin/license_replacer.rb b/bin/license_replacer.rb new file mode 100755 index 000000000..c835d1d94 --- /dev/null +++ b/bin/license_replacer.rb @@ -0,0 +1,17 @@ +MATCH = "" + +REPLACE = "" + +ARGV.each do |filename| + contents = File.open(filename, 'rb') { |f| f.read } + + first_line = contents.index("\n") + if contents[first_line + 1, 4] != "