From 902b2c77cd53053b113a6cdb31352c00a599d185 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Fri, 30 Mar 2018 15:15:49 +0200 Subject: [PATCH] cleanups --- core/core.c | 2 +- core/inotify.c | 2 +- core/inotify.h | 2 +- core/log.c | 2 +- core/log.h | 4 ++-- core/mem.c | 4 ++-- core/mem.h | 2 +- core/observe.c | 2 +- core/observe.h | 2 +- core/pipe.c | 2 +- core/pipe.h | 2 +- core/time.c | 2 +- core/util.c | 4 ++-- core/util.h | 4 ++-- mantle/array.lua | 9 ++------- mantle/combiner.lua | 9 ++------- mantle/counter.lua | 9 ++------- mantle/delay.lua | 9 ++------- mantle/filter.lua | 9 ++------- mantle/fwriter.lua | 7 ++----- mantle/inlet.lua | 7 ++----- mantle/inotify.lua | 9 ++------- mantle/lock.lua | 9 ++------- mantle/mci.lua | 13 +++---------- mantle/monitor.lua | 9 ++------- mantle/queue.lua | 9 ++------- mantle/statusfile.lua | 9 ++------- mantle/string.lua | 7 ++----- mantle/sync.lua | 7 ++----- mantle/syncmaster.lua | 9 ++------- mantle/user.lua | 9 ++------- mantle/useralarm.lua | 9 ++------- mantle/userenv.lua | 7 ++----- mantle/version.lua | 7 ++----- 34 files changed, 59 insertions(+), 149 deletions(-) diff --git a/core/core.c b/core/core.c index 74517f5..33f6071 100644 --- a/core/core.c +++ b/core/core.c @@ -1,5 +1,5 @@ /* -| core.c from Lsyncd - Live (Mirror) Syncing Demon +| core.c from Lsyncd -- the Live (Mirror) Syncing Demon | | | diff --git a/core/inotify.c b/core/inotify.c index 3d26176..2ea6121 100644 --- a/core/inotify.c +++ b/core/inotify.c @@ -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. diff --git a/core/inotify.h b/core/inotify.h index b1337ed..9ea53d5 100644 --- a/core/inotify.h +++ b/core/inotify.h @@ -1,5 +1,5 @@ /* -| inotify.h from Lsyncd - Live (Mirror) Syncing Demon +| inotify.h from Lsyncd -- the Live (Mirror) Syncing Demon | | | diff --git a/core/log.c b/core/log.c index f81bdcd..477ca86 100644 --- a/core/log.c +++ b/core/log.c @@ -1,5 +1,5 @@ /* -| log.c from Lsyncd - Live (Mirror) Syncing Demon +| log.c from Lsyncd -- the Live (Mirror) Syncing Demon | | | Logging. diff --git a/core/log.h b/core/log.h index 4b92776..3b571eb 100644 --- a/core/log.h +++ b/core/log.h @@ -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 diff --git a/core/mem.c b/core/mem.c index 03ba9ae..c559426 100644 --- a/core/mem.c +++ b/core/mem.c @@ -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. | diff --git a/core/mem.h b/core/mem.h index ce75745..6d50422 100644 --- a/core/mem.h +++ b/core/mem.h @@ -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. diff --git a/core/observe.c b/core/observe.c index 761576d..c40e6e5 100644 --- a/core/observe.c +++ b/core/observe.c @@ -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. diff --git a/core/observe.h b/core/observe.h index 6f843a2..36538fa 100644 --- a/core/observe.h +++ b/core/observe.h @@ -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. diff --git a/core/pipe.c b/core/pipe.c index e3d526f..24498d7 100644 --- a/core/pipe.c +++ b/core/pipe.c @@ -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). diff --git a/core/pipe.h b/core/pipe.h index 57e38ba..8b9fd49 100644 --- a/core/pipe.h +++ b/core/pipe.h @@ -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). diff --git a/core/time.c b/core/time.c index a1c41ae..4885a3a 100644 --- a/core/time.c +++ b/core/time.c @@ -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, diff --git a/core/util.c b/core/util.c index cb287b5..e2be18f 100644 --- a/core/util.c +++ b/core/util.c @@ -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 diff --git a/core/util.h b/core/util.h index da48aad..4597135 100644 --- a/core/util.h +++ b/core/util.h @@ -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 diff --git a/mantle/array.lua b/mantle/array.lua index 3594271..6106c60 100644 --- a/mantle/array.lua +++ b/mantle/array.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/combiner.lua b/mantle/combiner.lua index 0f5cdb1..062547d 100644 --- a/mantle/combiner.lua +++ b/mantle/combiner.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/counter.lua b/mantle/counter.lua index 347aed9..bc6e1d8 100644 --- a/mantle/counter.lua +++ b/mantle/counter.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/delay.lua b/mantle/delay.lua index 8430f21..5e716cf 100644 --- a/mantle/delay.lua +++ b/mantle/delay.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/filter.lua b/mantle/filter.lua index 0a7adb5..e8a8301 100644 --- a/mantle/filter.lua +++ b/mantle/filter.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/fwriter.lua b/mantle/fwriter.lua index bf05780..a074479 100644 --- a/mantle/fwriter.lua +++ b/mantle/fwriter.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/inlet.lua b/mantle/inlet.lua index 07e5daa..3314ed9 100644 --- a/mantle/inlet.lua +++ b/mantle/inlet.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/inotify.lua b/mantle/inotify.lua index a8399fd..1974ddd 100644 --- a/mantle/inotify.lua +++ b/mantle/inotify.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/lock.lua b/mantle/lock.lua index a006b2f..bbaaba6 100644 --- a/mantle/lock.lua +++ b/mantle/lock.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/mci.lua b/mantle/mci.lua index 5cd6c23..22aba83 100644 --- a/mantle/mci.lua +++ b/mantle/mci.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/monitor.lua b/mantle/monitor.lua index dd5e677..0f4b0c8 100644 --- a/mantle/monitor.lua +++ b/mantle/monitor.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/queue.lua b/mantle/queue.lua index 23f0a34..db2b9b6 100644 --- a/mantle/queue.lua +++ b/mantle/queue.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/statusfile.lua b/mantle/statusfile.lua index 1f41ec8..fddad7e 100644 --- a/mantle/statusfile.lua +++ b/mantle/statusfile.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/string.lua b/mantle/string.lua index 9d41cf6..9719e1a 100644 --- a/mantle/string.lua +++ b/mantle/string.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/sync.lua b/mantle/sync.lua index 011717f..9d3195a 100644 --- a/mantle/sync.lua +++ b/mantle/sync.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/syncmaster.lua b/mantle/syncmaster.lua index 88b1b6c..e921823 100644 --- a/mantle/syncmaster.lua +++ b/mantle/syncmaster.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/user.lua b/mantle/user.lua index d2a0d96..eb620da 100644 --- a/mantle/user.lua +++ b/mantle/user.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/useralarm.lua b/mantle/useralarm.lua index 0e96613..e49a68b 100644 --- a/mantle/useralarm.lua +++ b/mantle/useralarm.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if mantle then print( 'Error, Lsyncd mantle already loaded' ) diff --git a/mantle/userenv.lua b/mantle/userenv.lua index b65485b..016cc5d 100644 --- a/mantle/userenv.lua +++ b/mantle/userenv.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - userENV = { -- generic lua stuff to be available diff --git a/mantle/version.lua b/mantle/version.lua index 133b10f..5e3137c 100644 --- a/mantle/version.lua +++ b/mantle/version.lua @@ -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 -- ---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - if lsyncd_version then print( 'Error, Lsyncd mantle already loaded' )