From: Tilman Sauerbeck Date: Thu, 28 Apr 2005 21:08:11 +0000 (+0000) Subject: Don't abort if embryo_cc's return code is 1. X-Git-Tag: redact-0.1.2~13 X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=commitdiff_plain;h=f92d28bb16746dbb4b23d3fc127e088365ba087a Don't abort if embryo_cc's return code is 1. 1 means 'succeeded, but with warnings'. --- diff --git a/ChangeLog b/ChangeLog index 0acb351..32ff1d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,11 @@ -- -$Id: ChangeLog 38 2005-04-25 17:47:15Z tilman $ +$Id: ChangeLog 39 2005-04-28 21:08:11Z tilman $ ++ +2005-04-28 Tilman Sauerbeck (tilman at code-monkey de) + * lib/redact/app.rb: Don't abort if embryo_cc's return code is 1 + (which means 'succeeded, but with warnings') + 2005-04-25 Tilman Sauerbeck (tilman at code-monkey de) * Rakefile: Don't include one FileList in another 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