diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-20 13:59:12 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-20 13:59:12 +0100 |
commit | f84f7bf1b35efa793cb3ff893a97e8b65982c01b (patch) | |
tree | dd7f3d665b417d57a9cc232c0b9b5083b0139c42 /tools/gen_authors.rb | |
parent | Added comments to PKGBUILD (diff) | |
download | smolbote-f84f7bf1b35efa793cb3ff893a97e8b65982c01b.tar.xz |
Fixed repo location in license headers
Diffstat (limited to 'tools/gen_authors.rb')
-rwxr-xr-x | tools/gen_authors.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/gen_authors.rb b/tools/gen_authors.rb new file mode 100755 index 0000000..96f2679 --- /dev/null +++ b/tools/gen_authors.rb @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby +# Generate list of authors from repository commits + +log = `hg log --template='{author}'%` + +authors = Hash.new(0) +log.split('%').each do |i| + authors[i] += 1 +end + +# sort list by descending number of commits +authors = authors.sort_by {|k, v| v}.reverse + +# print out authors +authors.each do |k, v| + #print " #{k} (#{v})\n" + print " #{k}\n" +end |