mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-22 14:48:29 +00:00
This commit is contained in:
parent
920026efeb
commit
a836a0bbfa
@ -1,5 +1,5 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
CFLAGS = -Wall -pedantic $(LIBLUA_CFLAGS)
|
||||
CFLAGS = -Wall $(LIBLUA_CFLAGS)
|
||||
bin_PROGRAMS = lsyncd
|
||||
lsyncd_SOURCES = lsyncd.c
|
||||
lsyncd_LDADD = $(LIBLUA_LIBS)
|
||||
|
5
lsyncd.c
5
lsyncd.c
@ -1,3 +1,4 @@
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
#include <lua.h>
|
||||
#include <lualib.h>
|
||||
@ -13,9 +14,9 @@ int main (int argc, char *argv[])
|
||||
/* load Lua base libraries */
|
||||
luaL_openlibs(L);
|
||||
/* register our function */
|
||||
//lua_register(L, "average", average);
|
||||
/* lua_register(L, "average", average); */
|
||||
/* run the script */
|
||||
luaL_dofile(L, "lsyncd.lua");
|
||||
(void) luaL_dofile(L, "lsyncd.lua");
|
||||
/* cleanup Lua */
|
||||
lua_close(L);
|
||||
/* pause */
|
||||
|
Loading…
x
Reference in New Issue
Block a user