From 2b2cd361e8f12e21896cd041f9159743d3c27110 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 26 Mar 2005 19:21:15 +0000 Subject: [PATCH] Abort compilation if embryo_cc fails. --- ChangeLog | 3 ++- lib/redact/app.rb | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.30.2