squish.lua

changeset 28
99ec02c56716
parent 25
a4972a690064
child 29
0737a3bcf10b
equal deleted inserted replaced
27:0718b469099d 28:99ec02c56716
143 143
144 print_info("Writing "..out_fn.."..."); 144 print_info("Writing "..out_fn.."...");
145 local f = io.open(out_fn, "w+"); 145 local f = io.open(out_fn, "w+");
146 146
147 if opts.executable then 147 if opts.executable then
148 f:write("#!/usr/bin/env lua\n"); 148 if opts.executable == true then
149 f:write("#!/usr/bin/env lua\n");
150 else
151 f:write(opts.executable, "\n");
152 end
149 end 153 end
150 154
151 if enable_debug then 155 if enable_debug then
152 f:write [[ 156 f:write [[
153 local function ___rename_chunk(chunk, name) 157 local function ___rename_chunk(chunk, name)

mercurial