From: Tilman Sauerbeck Date: Sat, 26 Mar 2005 19:21:15 +0000 (+0000) Subject: Abort compilation if embryo_cc fails. X-Git-Tag: redact-0.1.0~13 X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=commitdiff_plain;h=2b2cd361e8f12e21896cd041f9159743d3c27110 Abort compilation if embryo_cc fails. --- diff --git a/ChangeLog b/ChangeLog index 1615df6..9e018b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,11 @@ -- -$Id: ChangeLog 2 2005-03-26 19:16:37Z tilman $ +$Id: ChangeLog 3 2005-03-26 19:21:15Z tilman $ ++ 2005-03-26 Tilman Sauerbeck (tilman at code-monkey de) * lib/redact/app.rb: Use Tempfile's for the Embryo source- and amx code + * lib/redact/app.rb: Abort compilation if embryo_cc fails 2005-03-22 Tilman Sauerbeck (tilman at code-monkey de) * lib/redact/app.rb: The default extension for Edje files is diff --git a/lib/redact/app.rb b/lib/redact/app.rb index d2b1923..7c5f39e 100644 --- a/lib/redact/app.rb +++ b/lib/redact/app.rb @@ -1,5 +1,5 @@ #-- -# $Id: app.rb 2 2005-03-26 19:16:37Z tilman $ +# $Id: app.rb 3 2005-03-26 19:21:15Z tilman $ # # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) # @@ -139,7 +139,9 @@ EOT c = "embryo_cc " + "-i #{incl}/include " + "-o #{tf_out.path} #{tf_in.path}" - system(c) + unless system(c) + fail("Cannot compile Embryo code") + end ret[col.id] = tf_out.read end