Permalink
Browse files

Rakefile: PDF task shouldn't delete its input.

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...
1 parent f4d23aa commit e319454b11259039caeb0fb9c6b9c83861fcf710 @runpaint committed May 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rakefile
View
@@ -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"
@@ -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

0 comments on commit e319454

Please sign in to comment.