Permalink
Browse files

Added rake task for generating CONTRIBUTERS file from git history

  • Loading branch information...
gettalong committed May 27, 2010
1 parent 939c1a8 commit 9b4f8fd4eac03885bbdfbe1008321e5c33a7045a
Showing with 9 additions and 1 deletion.
  1. +9 −1 Rakefile
View
@@ -113,7 +113,7 @@ EOF
'Rakefile',
'setup.rb',
'COPYING', 'GPL', 'README', 'AUTHORS',
- 'VERSION', 'ChangeLog',
+ 'VERSION', 'ChangeLog', 'CONTRIBUTERS',
'bin/*',
'benchmark/*',
'lib/**/*.rb',
@@ -135,6 +135,14 @@ EOF
`git log --name-only > ChangeLog`
end
+ CLOBBER << 'CONTRIBUTERS'
+ file 'CONTRIBUTERS' do
+ puts "Generating CONTRIBUTERS file"
+ `echo " Count Name" > CONTRIBUTERS`
+ `echo "======= ====" >> CONTRIBUTERS`
+ `git log | grep ^Author: | sed 's/^Author: //' | sort | uniq -c | sort -nr >> CONTRIBUTERS`
+ end
+
CLOBBER << "man/man1/kramdown.1"
file 'man/man1/kramdown.1' => ['man/man1/kramdown.1.erb'] do
puts "Generating kramdown man page"

0 comments on commit 9b4f8fd

Please sign in to comment.