diff options
Diffstat (limited to 'src/lua-script/cify.lua')
-rwxr-xr-x[-rw-r--r--] | src/lua-script/cify.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua-script/cify.lua b/src/lua-script/cify.lua index 153feb3..a2fbcbe 100644..100755 --- a/src/lua-script/cify.lua +++ b/src/lua-script/cify.lua @@ -1,11 +1,13 @@ +#!/usr/bin/lua + -- "C"-ify a lua program -output_file = io.open(arg[2], 'w') +output_file = io.open('script.h', 'w') output_file:write('const char *argent_script =\n') -for line in io.lines(arg[1]) do +for line in io.lines('script.lua') do output_file:write(' "'..line..'\\n"\n') end |