From 482790db6ce85b79a74b4f0f837fc848613daa4a Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Tue, 16 Nov 2010 16:14:53 -0800 Subject: Add a task to commit the changes --- tasks/release.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tasks') diff --git a/tasks/release.rb b/tasks/release.rb index 8073965a50..db82c6a563 100644 --- a/tasks/release.rb +++ b/tasks/release.rb @@ -73,9 +73,22 @@ namespace :release do end end + task :commit do + File.open('dist/commit_message.txt', 'w') do |f| + f.puts "# Preparing for #{version} release\n" + f.puts + f.puts "# UNCOMMENT THE LINE ABOVE TO APPROVE THIS COMMIT" + end + + sh "git add . && git commit --verbose --template=dist/commit_message.txt" + rm_f "dist/commit_message.txt" + end + task :tag do sh "git tag #{tag}" end + + task :full => %w(ensure_clean_state all:build commit) end namespace :all do -- cgit v1.2.3