Skip to content
This repository
Browse code

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...
commit e319454b11259039caeb0fb9c6b9c83861fcf710 1 parent f4d23aa
runpaint authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  Rakefile
2  Rakefile
@@ -38,7 +38,6 @@ end
38 38
39 39 file 'output/vim-recipes.pdf' => OUTPUT_HTML do |t|
40 40 system("prince #{t.prerequisites.first} #{t.name}")
41   - rm OUTPUT_HTML
42 41 end
43 42
44 43 desc "Generate the PDF"
@@ -169,6 +168,7 @@ end
169 168
170 169 desc "Upload the website"
171 170 task :upload => [:www, :sitemap] do
  171 + rm OUTPUT_HTML
172 172 sh "rsync -vaz output/ vim.runpaint.org:/home/public/"
173 173 Rake::Task['sitemap_notify'].invoke
174 174 end

0 comments on commit e319454

Please sign in to comment.
Something went wrong with that request. Please try again.