mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-04 19:03:17 +00:00
fix script integration
This commit is contained in:
parent
7531409809
commit
18dda7629b
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
2
lsyncd.c
2
lsyncd.c
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user