# HG changeset patch # User Matthew Wild # Date 1248614491 -3600 # Node ID e3b923ccadb15325d3cd90bfc5c059e170188958 # Parent cb14d8c0d0f7153b21697720c07ca17b3bd70c6c Support for Message and Error in squishy files to show messages to the user, and Exit to halt squishing diff -r cb14d8c0d0f7 -r e3b923ccadb1 squish.lua --- 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("/$", "").."/"