summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-09-25 13:26:33 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-09-25 13:26:33 +1000
commit3a39dd8353b6308cf49522990104cc63e55d7cda (patch)
tree2ef144ef6a65a4add1fe5fb1ca9bc689a5e65842 /tasks
parent07dca60aee47e1920e3790eb9b4951aaa1832d83 (diff)
downloadfacter-3a39dd8353b6308cf49522990104cc63e55d7cda.tar.gz
facter-3a39dd8353b6308cf49522990104cc63e55d7cda.tar.xz
facter-3a39dd8353b6308cf49522990104cc63e55d7cda.zip
Updated ChangeLog and task
Diffstat (limited to 'tasks')
-rw-r--r--tasks/rake/changlog.rake11
1 files changed, 8 insertions, 3 deletions
diff --git a/tasks/rake/changlog.rake b/tasks/rake/changlog.rake
index 0427e41..adeeb03 100644
--- a/tasks/rake/changlog.rake
+++ b/tasks/rake/changlog.rake
@@ -1,10 +1,15 @@
desc "Create a ChangeLog based on git commits."
task :changelog do
+ begin
+ gitc = %x{which git-changelog}
+ rescue
+ puts "This task needs the git-changelog binary - http://github.com/ReinH/git-changelog"
+ end
+
CHANGELOG_DIR = "#{Dir.pwd}"
mkdir(CHANGELOG_DIR) unless File.directory?(CHANGELOG_DIR)
- change_body=`git log --pretty=format:'%aD%n%an <%ae>%n%s%n'`
- File.open(File.join(CHANGELOG_DIR, "ChangeLog"), 'w') do |f|
+ change_body = `git-changelog --no-limit -a`
+ File.open(File.join(CHANGELOG_DIR, "CHANGELOG"), 'w') do |f|
f << change_body
end
end
-