web/Rakefile in rubyvis-0.4.0 vs web/Rakefile in rubyvis-0.4.1

- old
+ new

@@ -36,10 +36,13 @@ EXAMPLES.each do |v| e=v[1] file "examples/#{e}.html"=>["examples.haml", "examples/#{e}.svg", :build_site, v[0]] file "examples/#{e}.svg"=>[v[0]] do |t| - system "ruby #{v[0]} > #{t.name}" + if !system "ruby #{v[0]} > #{t.name}" + FileUtils.rm t.name + exit + end end file "examples/#{e}.png"=>["examples/#{e}.svg"] do |t| system "rsvg -w 200 -h 200 -f png examples/#{e}.svg #{t.name}" end end