mirror of https://github.com/octoleo/lsyncd.git
cleanups
This commit is contained in:
parent
117f2cb088
commit
902b2c77cd
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| core.c from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| core.c from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| inotify.c from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| inotify.c from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Event interface for Lsyncd to Linux´ inotify.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| inotify.h from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| inotify.h from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| log.c from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| log.c from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Logging.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
| log.h from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| log.h from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Logging
|
||||
| Logging.
|
||||
|
|
||||
|
|
||||
| License: GPLv2 (see COPYING) or any later version
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
| mem.c from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| mem.c from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Simple "secured" memory management.
|
||||
|
|
||||
| In future it might be an idea to call the lua garbage collecter in case memory allocation
|
||||
| fails. However on Linux it's a mood point since practically a NULL is only returned
|
||||
| fails. However on Linux it is a mood point since practically a NULL is only returned
|
||||
| when requesting a way too large memory block the system can ever handle, if the kernel
|
||||
| runs out of memory it goes instead into oom-killer mode.
|
||||
|
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| mem.h from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| mem.h from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Simple "secured" memory management.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| observe.c from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| observe.c from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Handles observing file descriptors and the big select.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| observe.h from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| observe.h from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Handles observing file descriptors and the big select.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| pipe.c from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| pipe.c from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Manages the pipes used to communicate with spawned subprocesses (usually rsync).
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| pipe.h from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| pipe.h from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Manages the pipes used to communicate with spawned subprocesses (usually rsync).
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
| time.c from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| time.c from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Keeps time for Lsyncd,
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
| util.c from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| util.c from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Small in Lsyncd commonly used utils.
|
||||
| Small commonly used utils by Lsyncd.
|
||||
|
|
||||
|
|
||||
| License: GPLv2 (see COPYING) or any later version
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
| util.h from Lsyncd - Live (Mirror) Syncing Demon
|
||||
| util.h from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
|
|
||||
|
|
||||
| Small in Lsyncd commonly used utils.
|
||||
| Small commonly used utils by Lsyncd.
|
||||
|
|
||||
|
|
||||
| License: GPLv2 (see COPYING) or any later version
|
||||
|
|
|
@ -1,19 +1,14 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- array.lua
|
||||
--
|
||||
-- array.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Array tables error if accessed with a non-number.
|
||||
-- They maintain their length as an attribute and are zero based.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- combiner.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- combiner.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Combines delays.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,19 +1,14 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- counter.lua
|
||||
--
|
||||
-- counter.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Couter tables simply keep a count of the number of elements
|
||||
-- in them
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- delay.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- delay.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Holds the information about a delayed event for one Sync.
|
||||
|
@ -10,14 +10,9 @@
|
|||
-- 'blocked' ... this event waits for another to be handled first.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- filter.lua
|
||||
--
|
||||
-- filter.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- A set of filter patterns.
|
||||
|
@ -8,14 +8,9 @@
|
|||
--
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- fwrite.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Writes functions for the user for layer 3 configurations.
|
||||
|
@ -10,9 +10,6 @@
|
|||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- inlet.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Creates inlets for syncs: the user interface for events.
|
||||
|
@ -10,9 +10,6 @@
|
|||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- inotify.lua
|
||||
--
|
||||
-- inotify.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Interface to inotify core.
|
||||
|
@ -8,14 +8,9 @@
|
|||
-- All inotify specific implementation is enclosed here.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- lock.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Locks globals.
|
||||
|
@ -7,14 +7,9 @@
|
|||
-- No more globals can be created after this!
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,20 +1,13 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- mci.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- This is the "runner" part of Lsyncd. It containts all its high-level logic.
|
||||
-- It works closely together with the Lsyncd core in lsyncd.c. This means it
|
||||
-- cannot be runned directly from the standard lua interpreter.
|
||||
-- The mantle part of the inteface between mantle and core.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- monitor.lua
|
||||
--
|
||||
-- monitor.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Holds information about the event monitor capabilities
|
||||
|
@ -10,14 +10,9 @@
|
|||
-- it can do is only inotify again. But this might improve again.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- queue.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- The queue is optimized for FILO operation.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- statusfile.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Writes a status report file at most every 'statusintervall' seconds.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- string.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- String comfort routines, also exported to user scripts.
|
||||
|
@ -10,9 +10,6 @@
|
|||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- sync.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Holds information about one observed directory including subdirs.
|
||||
|
@ -10,9 +10,6 @@
|
|||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- syncmaster.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- The singleton SyncMaster maintains all configured syncs.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- user.lua
|
||||
--
|
||||
-- user.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Lsyncd user script interface
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- useralarm.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Lets userscripts make their own alarms.
|
||||
--
|
||||
--
|
||||
-- This code assumes your editor is at least 100 chars wide.
|
||||
--
|
||||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if mantle
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- userenv.lua
|
||||
--
|
||||
-- userenv.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Setups up the global environment for a user script.
|
||||
|
@ -11,9 +11,6 @@
|
|||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
userENV =
|
||||
{
|
||||
-- generic lua stuff to be available
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-- lsyncd.lua Live (Mirror) Syncing Demon
|
||||
--
|
||||
-- version.lua from Lsyncd -- the Live (Mirror) Syncing Demon
|
||||
--
|
||||
--
|
||||
-- Sets the lsyncd_version of the mantle,
|
||||
|
@ -10,9 +10,6 @@
|
|||
-- License: GPLv2 (see COPYING) or any later version
|
||||
-- Authors: Axel Kittenberger <axkibe@gmail.com>
|
||||
--
|
||||
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
if lsyncd_version
|
||||
then
|
||||
print( 'Error, Lsyncd mantle already loaded' )
|
||||
|
|
Loading…
Reference in New Issue