Support for Message and Error in squishy files to show messages to the user, and Exit to halt squishing

Sun, 26 Jul 2009 14:21:31 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 26 Jul 2009 14:21:31 +0100
changeset 23
e3b923ccadb1
parent 22
cb14d8c0d0f7
child 24
73ac55bcc19a

Support for Message and Error in squishy files to show messages to the user, and Exit to halt squishing

squish.lua file | annotate | diff | comparison | revisions
--- a/squish.lua	Sun Jul 26 03:59:35 2009 +0100
+++ b/squish.lua	Sun Jul 26 14:21:31 2009 +0100
@@ -78,6 +78,17 @@
 	return opts[name:gsub('%-', '_')];
 end
 
+function Message(message)
+	print_info(message);
+end
+
+function Error(message)
+	print_err(message);
+end
+
+function Exit()
+	os.exit(1);
+end
 -- -- -- -- -- -- -- --- -- -- -- -- -- -- -- --
 
 base_path = (base_path or "."):gsub("/$", "").."/"

mercurial