squish.lua

changeset 91
4608c7c025e5
parent 90
b9470a7655b4
child 95
828e814152e0
equal deleted inserted replaced
90:b9470a7655b4 91:4608c7c025e5
201 print_err("Exiting due to missing modules without a path"); 201 print_err("Exiting due to missing modules without a path");
202 os.exit(1); 202 os.exit(1);
203 end 203 end
204 end 204 end
205 205
206 if opts.list_files then 206 if opts.list_files or opts.list_missing_files then
207 local function write(text) 207 local function write(filename)
208 io.write(text, "\n"); 208 if opts.list_missing_files then
209 local f = io.open(filename);
210 if f then
211 f:close();
212 return;
213 end
214 end
215 io.write(filename, "\n");
209 end 216 end
210 for _, fn in pairs(main_files) do 217 for _, fn in pairs(main_files) do
211 write(fn); 218 write(fn);
212 end 219 end
213 for _, module in ipairs(modules) do 220 for _, module in ipairs(modules) do

mercurial