fix script integration

This commit is contained in:
Axel Kittenberger 2011-05-04 13:18:37 +00:00
parent 7531409809
commit 18dda7629b
3 changed files with 5 additions and 5 deletions

View File

@ -47,11 +47,11 @@ lsyncd_LDADD += luac.o
luac.o: luac.c luac.o: luac.c
luac.c: luac.out bin2carray.lua
lua ./bin2carray.lua luac.out luac luac.c
luac.out: lsyncd.lua luac.out: lsyncd.lua
luac $< luac $<
luac.c: lsyncd.lua bin2carray.lua
lua ./bin2carray.lua lsyncd.lua luac luac.c
endif endif

View File

@ -26,7 +26,7 @@ end
fout:write("/* created by "..arg[0].." from file "..arg[1].." */\n") fout:write("/* created by "..arg[0].." from file "..arg[1].." */\n")
fout:write("#include <stddef.h>\n") fout:write("#include <stddef.h>\n")
fout:write("const unsigned char "..arg[2].."_out[] = {\n") fout:write("const char "..arg[2].."_out[] = {\n")
while true do while true do
local block = fin:read(16) local block = fin:read(16)
if block == nil then if block == nil then

View File

@ -45,7 +45,7 @@
* The Lua part of lsyncd if compiled into the binary. * The Lua part of lsyncd if compiled into the binary.
*/ */
#ifndef LSYNCD_DEFAULT_RUNNER_FILE #ifndef LSYNCD_DEFAULT_RUNNER_FILE
extern unsigned char * luac_out; extern const char luac_out[];
extern size_t luac_size; extern size_t luac_size;
#endif #endif