Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove incompletely generated HTML if gerbil fails.

  • Loading branch information...
commit 828e0c9b41a8ee7c27f3566588ef366b5326cab9 1 parent fd94a11
@dlitz authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 Rakefile
View
7 Rakefile
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.