Skip to content

Commit

Permalink
Remove incompletely generated HTML if gerbil fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlitz committed Apr 17, 2010
1 parent fd94a11 commit 828e0c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ task :default => :build
task 'doc/guide' => 'doc/guide.html'

file 'doc/guide.html' => 'doc/guide.erb' do |t|
sh "gerbil -u html #{t.prerequisites} > #{t.name}"
begin
sh "gerbil -u html #{t.prerequisites} > #{t.name}"
rescue
rm_f t.name
raise
end
end
CLOBBER.include 'doc/guide.html'

Expand Down

0 comments on commit 828e0c9

Please sign in to comment.