X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=blobdiff_plain;f=lib%2Fredact%2Fapp.rb;h=dc9ef9b52b4d52bb8fb8697e0a0cd1f26c452eeb;hp=351897e2ef4c7e693535af593a5d7192d3d438c8;hb=f92d28bb16746dbb4b23d3fc127e088365ba087a;hpb=7552791cc08595fd469c11feff1fa0899820022c diff --git a/lib/redact/app.rb b/lib/redact/app.rb index 351897e..dc9ef9b 100644 --- a/lib/redact/app.rb +++ b/lib/redact/app.rb @@ -1,5 +1,5 @@ #-- -# $Id: app.rb 30 2005-04-23 15:25:21Z tilman $ +# $Id: app.rb 39 2005-04-28 21:08:11Z tilman $ # # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) # @@ -135,7 +135,8 @@ module Redact c = "embryo_cc " + "-i #{incl}/include " + "-o #{tf_out.path} #{tf_in.path}" - unless system(c) + system(c) + unless (0..1).include?($?.exitstatus) raise("Cannot compile Embryo code") end