diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-09-15 23:30:29 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-09-15 23:30:29 +1000 |
commit | b1554a1a38aa7a4da6c9927e26c9411af4ce1dff (patch) | |
tree | 97225fcbcd697ada7100f998d4fba7ea1e7c84b9 /tasks | |
parent | f5a106dd61947146138148f64967122a4c9021d1 (diff) | |
download | puppet-b1554a1a38aa7a4da6c9927e26c9411af4ce1dff.tar.gz puppet-b1554a1a38aa7a4da6c9927e26c9411af4ce1dff.tar.xz puppet-b1554a1a38aa7a4da6c9927e26c9411af4ce1dff.zip |
Updated changelog task and CHANGELOG to version aware
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rake/changelog.rake (renamed from tasks/rake/changlog.rake) | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tasks/rake/changlog.rake b/tasks/rake/changelog.rake index dc3de0e3e..adeeb03a4 100644 --- a/tasks/rake/changlog.rake +++ b/tasks/rake/changelog.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'` + change_body = `git-changelog --no-limit -a` File.open(File.join(CHANGELOG_DIR, "CHANGELOG"), 'w') do |f| f << change_body end end - |