You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/03/27 01:37:45 UTC
[whimsy.git] [1/1] Commit dc7012d: add an icla sorting tool
Commit dc7012d66dc4856d829829ab9dc415f6c82e5418:
add an icla sorting tool
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
tools/iclasort.rb | +++++++++++++++
------------------------------------------------------------
15 changes: 15 additions, 0 deletions.
------------------------------------------------------------
diff --git a/tools/iclasort.rb b/tools/iclasort.rb
new file mode 100644
index 0000000..b764924
--- /dev/null
+++ b/tools/iclasort.rb
@@ -0,0 +1,15 @@
+$LOAD_PATH.unshift File.realpath(File.expand_path('../../lib', __FILE__))
+require 'whimsy/asf'
+
+OFFICERS = ASF::SVN['private/foundation/officers']
+
+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