require 'whimsy/asf' | |
OFFICERS = ASF::SVN['private/foundation/officers'] | |
unless OFFICERS | |
STDERR.puts 'Unable to locate a checked out version of ' | |
STDERR.puts 'https://svn.apache.org/repos/private/foundation/officers.' | |
STDERR.ptus | |
STDERR.puts "Please check your #{Dir.home}/.whimsy file" | |
exit 1 | |
end | |
Dir.chdir OFFICERS | |
source = File.read('iclas.txt') | |
sorted = ASF::ICLA.sort(source) | |
if source == sorted | |
puts 'no change' | |
else | |
File.write('iclas.txt', sorted) | |
system 'svn diff iclas.txt' | |
end |