Navigation Menu

Skip to content

Commit

Permalink
Depend on version.rb to ensure we rebuild with new releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevendanna authored and btm committed Aug 3, 2011
1 parent 21cb04a commit 6e4eb8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chef/Rakefile
Expand Up @@ -74,7 +74,7 @@ namespace :docs do
Dir['distro/common/man/man1/*.1'].each do |man|
topics << File.basename(man, '.1')
end

File.open('lib/chef/knife/help_topics.rb', 'w') do |f|
f.puts "# Do not edit this file by hand"
f.puts "# This file is autogenerated by the docs:list rake task from the available manpages\n\n"
Expand All @@ -95,12 +95,12 @@ namespace :docs do
htmlfile = "distro/common/html/#{basename}.8.html"
end

file(manfile => mkd) do
file(manfile => [mkd, 'lib/chef/version.rb']) do
sh "ronn -r #{RONN_OPTS} #{mkd} --pipe > #{manfile}"
end
task :man => manfile

file(htmlfile => mkd) do
file(htmlfile => [mkd, 'lib/chef/version.rb']) do
sh "ronn -5 #{RONN_OPTS} --style=toc #{mkd} --pipe > #{htmlfile}"
end
task :html => htmlfile
Expand Down

0 comments on commit 6e4eb8e

Please sign in to comment.