[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:54 UTC 2009


The following commit has been merged in the master branch:
commit 9384a4ab1ec902487bb0b4d329e554283a147529
Author: James Turnbull <james at lovedthanlost.net>
Date:   Wed Oct 29 10:50:54 2008 +1100

    Added git changelog task

diff --git a/Rakefile b/Rakefile
index f9e349a..7175c3e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -208,3 +208,22 @@ task :mail_patches do
     # Finally, clean up the patches
     sh "rm 00*.patch"
 end
+
+    desc "Create a changelog based on your git commits."
+    task :changelog do
+ 
+      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'`
+      version = version + "\n"
+
+      File.open(File.join(CHANGELOG_DIR, "CHANGELOG.git"), 'w') do |f|
+        f << version << change_body 
+      end
+ 
+      # Changelog commit
+      `git add #{CHANGELOG_DIR}/CHANGELOG.git`
+      `git commit -m "Update CHANGELOG.git"`
+    end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list