squish.lua

changeset 23
e3b923ccadb1
parent 22
cb14d8c0d0f7
child 24
73ac55bcc19a
equal deleted inserted replaced
22:cb14d8c0d0f7 23:e3b923ccadb1
76 76
77 function GetOption(name) 77 function GetOption(name)
78 return opts[name:gsub('%-', '_')]; 78 return opts[name:gsub('%-', '_')];
79 end 79 end
80 80
81 function Message(message)
82 print_info(message);
83 end
84
85 function Error(message)
86 print_err(message);
87 end
88
89 function Exit()
90 os.exit(1);
91 end
81 -- -- -- -- -- -- -- --- -- -- -- -- -- -- -- -- 92 -- -- -- -- -- -- -- --- -- -- -- -- -- -- -- --
82 93
83 base_path = (base_path or "."):gsub("/$", "").."/" 94 base_path = (base_path or "."):gsub("/$", "").."/"
84 squishy_file = base_path .. "squishy"; 95 squishy_file = base_path .. "squishy";
85 out_fn = opts.output or "squished.out.lua"; 96 out_fn = opts.output or "squished.out.lua";

mercurial