make_squishy

changeset 84
14f827efadf2
parent 70
0fd43db11abc
equal deleted inserted replaced
83:ff14c066a643 84:14f827efadf2
75 end):gsub("/%./", "/"); 75 end):gsub("/%./", "/");
76 76
77 77
78 function scan_file(outfile, scanfile) 78 function scan_file(outfile, scanfile)
79 for line in io.lines(scanfile) do 79 for line in io.lines(scanfile) do
80 for _, module in line:gmatch("[^%w_]require%s*%(?([\"'])(.-)%1") do 80 for _, module in (" "..line):gmatch("[^%w_]require%s*%(?([\"'])(.-)%1") do
81 if not modules[module] then 81 if not modules[module] then
82 local binary; 82 local binary;
83 modules[module] = true; 83 modules[module] = true;
84 local filename = resolve_module(module, package_path); 84 local filename = resolve_module(module, package_path);
85 if false and not filename then 85 if false and not filename then

mercurial