Sun, 26 Jul 2009 14:21:31 +0100
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("/$", "").."/"