summary refs log tree commit diff
path: root/Rakefile
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2012-12-21 11:45:44 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2012-12-21 11:56:08 +0100
commit836e691f1dfe5fb448055c3c22f33bac8431620f (patch)
tree1f3d918a817897ecccd1036c4889ef01c2fb053f /Rakefile
parent0cc2f3aab68dedcb1eb60adbdf76f1d6ddb3c8ef (diff)
downloadbacon-836e691f1dfe5fb448055c3c22f33bac8431620f.tar.gz
bacon-836e691f1dfe5fb448055c3c22f33bac8431620f.tar.xz
bacon-836e691f1dfe5fb448055c3c22f33bac8431620f.zip
Replace ChangeLog generator
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile15
1 files changed, 1 insertions, 14 deletions
diff --git a/Rakefile b/Rakefile
index 6900abf..008d2f2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -50,20 +50,7 @@ end
 
 desc "Generate a ChangeLog"
 task :changelog do
-  File.open("ChangeLog", "w") { |out|
-    `git log -z`.split("\0").map { |chunk|
-      author = chunk[/Author: (.*)/, 1].strip
-      date = chunk[/Date: (.*)/, 1].strip
-      desc, detail = $'.strip.split("\n", 2)
-      detail ||= ""
-      detail = detail.gsub(/.*darcs-hash:.*/, '')
-      detail.rstrip!
-      out.puts "#{date}  #{author}"
-      out.puts "  * #{desc.strip}"
-      out.puts detail  unless detail.empty?
-      out.puts
-    }
-  }
+  sh "git log --format='%ad  %an <%ae>%n%w(79,2,4)* %s%n%n%w(76,4,4)%b' |grep -v darcs-hash: |cat -s >ChangeLog"
 end