Skip to content

Commit

Permalink
Rakefile: PDF task shouldn't delete its input.
Browse files Browse the repository at this point in the history
The _pdf_ task previously deleted its input (_output/all.html_), this made
`prince` error messages difficult to debug. We now delete it before uploading,
instead, so the _pdf_ task can be used to find invalid HTML.
  • Loading branch information
runpaint committed May 12, 2009
1 parent f4d23aa commit e319454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ end

file 'output/vim-recipes.pdf' => OUTPUT_HTML do |t|
system("prince #{t.prerequisites.first} #{t.name}")
rm OUTPUT_HTML
end

desc "Generate the PDF"
Expand Down Expand Up @@ -169,6 +168,7 @@ end

desc "Upload the website"
task :upload => [:www, :sitemap] do
rm OUTPUT_HTML
sh "rsync -vaz output/ vim.runpaint.org:/home/public/"
Rake::Task['sitemap_notify'].invoke
end
Expand Down

0 comments on commit e319454

Please sign in to comment.