compile/squish.compile.lua

changeset 26
a22604b2f5f3
parent 9
875ff34ab96c
child 45
69b3487c71cc
equal deleted inserted replaced
25:a4972a690064 26:a22604b2f5f3
31 local code = newdata or data; 31 local code = newdata or data;
32 if shebang then 32 if shebang then
33 outfile:write(shebang) 33 outfile:write(shebang)
34 end 34 end
35 35
36 outfile:write(compile_string(data, outfile_fn)); 36 outfile:write(compile_string(code, outfile_fn));
37 37
38 os.rename(outfile_fn..".compiled", outfile_fn); 38 os.rename(outfile_fn..".compiled", outfile_fn);
39 end 39 end
40 40
41 if opts.compile then 41 if opts.compile then

mercurial