fix script integration

ci
Axel Kittenberger 12 years ago
parent 7531409809
commit 18dda7629b

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

@ -26,7 +26,7 @@ end
fout:write("/* created by "..arg[0].." from file "..arg[1].." */\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
local block = fin:read(16)
if block == nil then

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

Loading…
Cancel
Save