mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
2.0beta1 release
This commit is contained in:
parent
57778a3594
commit
bd221cf02c
@ -1,10 +1,10 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
CFLAGS = -Wall $(LIBLUA_CFLAGS)
|
||||
bin_PROGRAMS = lsyncd
|
||||
lsyncd_SOURCES = lsyncd.c
|
||||
lsyncd_SOURCES = lsyncd.c lsyncd.lua
|
||||
lsyncd_LDADD = $(LIBLUA_LIBS)
|
||||
exampledir = $(datarootdir)/doc/@PACKAGE@
|
||||
example_DATA = \
|
||||
dist_example_DATA = \
|
||||
examples/lbash.lua \
|
||||
examples/limagemagic.lua \
|
||||
examples/lrsync.lua \
|
||||
|
@ -2,9 +2,9 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
#AC_PREREQ(2.60)
|
||||
AC_INIT(lsyncd, 2.0beta1, axkibe@gmail.com)
|
||||
AC_CONFIG_SRCDIR([lsyncd.c])
|
||||
AC_CONFIG_SRCDIR([lsyncd.c],[lsyncd.lua])
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
AM_INIT_AUTOMAKE(lsyncd, main)
|
||||
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
@ -63,9 +63,6 @@ convert = {
|
||||
end
|
||||
|
||||
-- deletes all formats if you delete one
|
||||
local p = event.pathname
|
||||
local ext = string.match(p, ".*%.([^.]+)$")
|
||||
local base = string.match(p, "(.*)%.[^.]+$")
|
||||
if event.etype == "Delete" then
|
||||
-- builds one bash command
|
||||
local cmd = ""
|
||||
|
20
lsyncd.c
20
lsyncd.c
@ -927,25 +927,6 @@ l_subdirs (lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes a string to a file descriptor
|
||||
*
|
||||
* @param (Lua Stack) file descriptor
|
||||
* @param (Lua Stack) string.
|
||||
*/
|
||||
int
|
||||
l_writefd(lua_State *L)
|
||||
{
|
||||
int fd = luaL_checkinteger(L, 1);
|
||||
/* concates if there is more than one string parameter */
|
||||
lua_concat(L, lua_gettop(L) - 1);
|
||||
{
|
||||
const char *s = luaL_checkstring(L, 2);
|
||||
write(fd, s, strlen(s));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Terminates lsyncd daemon.
|
||||
*
|
||||
@ -1019,7 +1000,6 @@ static const luaL_reg lsyncdlib[] = {
|
||||
{"stackdump", l_stackdump },
|
||||
{"subdirs", l_subdirs },
|
||||
{"terminate", l_terminate },
|
||||
{"writefd", l_writefd },
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user