Abort compilation if embryo_cc fails.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 26 Mar 2005 19:21:15 +0000 (19:21 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sat, 26 Mar 2005 19:21:15 +0000 (19:21 +0000)
ChangeLog
lib/redact/app.rb

index 1615df6397d65a3ceda4c50d6a72f23b596caf9f..9e018b8b8d3821a3d965558b8c5426b23faa8b3a 100644 (file)
--- 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
 ++
 
 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
 
 2005-03-22 Tilman Sauerbeck (tilman at code-monkey de)
         * lib/redact/app.rb: The default extension for Edje files is
index d2b192390297aba44ee86305363bba4d99109c8c..7c5f39ee69334d8c2533712c142c95e7e32f1353 100644 (file)
@@ -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)
 #
 #
 # 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}"
                                                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
 
                                                ret[col.id] = tf_out.read
                                        end