diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-09-25 13:26:33 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-09-25 13:26:33 +1000 |
commit | 3a39dd8353b6308cf49522990104cc63e55d7cda (patch) | |
tree | 2ef144ef6a65a4add1fe5fb1ca9bc689a5e65842 /tasks | |
parent | 07dca60aee47e1920e3790eb9b4951aaa1832d83 (diff) | |
download | facter-3a39dd8353b6308cf49522990104cc63e55d7cda.tar.gz facter-3a39dd8353b6308cf49522990104cc63e55d7cda.tar.xz facter-3a39dd8353b6308cf49522990104cc63e55d7cda.zip |
Updated ChangeLog and task
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rake/changlog.rake | 11 |
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 - |