From 18dda7629b9bcda809525e689882718489f733e9 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Wed, 4 May 2011 13:18:37 +0000 Subject: [PATCH] fix script integration --- Makefile.am | 6 +++--- bin2carray.lua | 2 +- lsyncd.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index f437b90..77bfe12 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/bin2carray.lua b/bin2carray.lua index b216b5a..9d18937 100755 --- a/bin2carray.lua +++ b/bin2carray.lua @@ -26,7 +26,7 @@ end fout:write("/* created by "..arg[0].." from file "..arg[1].." */\n") fout:write("#include \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 diff --git a/lsyncd.c b/lsyncd.c index 82dea2a..5132804 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -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