mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +00:00
2.0beta1 release
This commit is contained in:
parent
57778a3594
commit
bd221cf02c
@ -1,10 +1,10 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
CFLAGS = -Wall $(LIBLUA_CFLAGS)
|
CFLAGS = -Wall $(LIBLUA_CFLAGS)
|
||||||
bin_PROGRAMS = lsyncd
|
bin_PROGRAMS = lsyncd
|
||||||
lsyncd_SOURCES = lsyncd.c
|
lsyncd_SOURCES = lsyncd.c lsyncd.lua
|
||||||
lsyncd_LDADD = $(LIBLUA_LIBS)
|
lsyncd_LDADD = $(LIBLUA_LIBS)
|
||||||
exampledir = $(datarootdir)/doc/@PACKAGE@
|
exampledir = $(datarootdir)/doc/@PACKAGE@
|
||||||
example_DATA = \
|
dist_example_DATA = \
|
||||||
examples/lbash.lua \
|
examples/lbash.lua \
|
||||||
examples/limagemagic.lua \
|
examples/limagemagic.lua \
|
||||||
examples/lrsync.lua \
|
examples/lrsync.lua \
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
#AC_PREREQ(2.60)
|
#AC_PREREQ(2.60)
|
||||||
AC_INIT(lsyncd, 2.0beta1, axkibe@gmail.com)
|
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])
|
AC_CONFIG_HEADER([config.h])
|
||||||
AM_INIT_AUTOMAKE(lsyncd, main)
|
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
@ -63,9 +63,6 @@ convert = {
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- deletes all formats if you delete one
|
-- 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
|
if event.etype == "Delete" then
|
||||||
-- builds one bash command
|
-- builds one bash command
|
||||||
local cmd = ""
|
local cmd = ""
|
||||||
|
20
lsyncd.c
20
lsyncd.c
@ -927,25 +927,6 @@ l_subdirs (lua_State *L)
|
|||||||
return 1;
|
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.
|
* Terminates lsyncd daemon.
|
||||||
*
|
*
|
||||||
@ -1019,7 +1000,6 @@ static const luaL_reg lsyncdlib[] = {
|
|||||||
{"stackdump", l_stackdump },
|
{"stackdump", l_stackdump },
|
||||||
{"subdirs", l_subdirs },
|
{"subdirs", l_subdirs },
|
||||||
{"terminate", l_terminate },
|
{"terminate", l_terminate },
|
||||||
{"writefd", l_writefd },
|
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user