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) |