squish.lua

changeset 88
60e10cf9b20c
parent 87
f39aceada1ad
child 89
23dbca856f92
equal deleted inserted replaced
87:f39aceada1ad 88:60e10cf9b20c
192 -- Strip base_path from resolved path 192 -- Strip base_path from resolved path
193 module.path = module.path:gsub("^"..base_path:gsub("%p", "%%%1"), ""); 193 module.path = module.path:gsub("^"..base_path:gsub("%p", "%%%1"), "");
194 end 194 end
195 end 195 end
196 end 196 end
197 end
198
199 print(opts.list_files)
200 if opts.list_files then
201 local function write(text)
202 io.write(text, "\n");
203 end
204 for _, fn in pairs(main_files) do
205 write(fn);
206 end
207 for _, module in ipairs(modules) do
208 write(module.path);
209 end
210 for _, resource in ipairs(resources) do
211 write(resource.path);
212 end
213 return;
197 end 214 end
198 215
199 print_info("Writing "..out_fn.."..."); 216 print_info("Writing "..out_fn.."...");
200 local f, err = io.open(out_fn, "w+"); 217 local f, err = io.open(out_fn, "w+");
201 if not f then 218 if not f then

mercurial