build man on release

This commit is contained in:
David Dollar committed 2010-06-23 18:19:50 -04:00
1 parent dc1cb08d27
commit 4741dceeb0
1 file changed
+3
+3
View File
@@ -6,6 +6,7 @@ $:.unshift File.expand_path("../lib", __FILE__)
require "foreman" require "foreman"
task :default => :spec task :default => :spec
task :release => :man
desc "Run all specs" desc "Run all specs"
Rspec::Core::RakeTask.new(:spec) do |t| Rspec::Core::RakeTask.new(:spec) do |t|
@@ -29,6 +30,8 @@ task :man do
ENV['RONN_MANUAL'] = "Foreman Manual" ENV['RONN_MANUAL'] = "Foreman Manual"
ENV['RONN_ORGANIZATION'] = "Foreman #{Foreman::VERSION}" ENV['RONN_ORGANIZATION'] = "Foreman #{Foreman::VERSION}"
sh "ronn -w -s toc -r5 --markdown man/*.ronn" sh "ronn -w -s toc -r5 --markdown man/*.ronn"
sh "git add man/*.?"
sh "git commit -m \"updating man pages\""
end end
###################################################### ######################################################