mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 17:14:03 +00:00
OSX cp cannot do -t
This commit is contained in:
parent
08ad1f4151
commit
1f7cac3bc0
@ -31,7 +31,8 @@ TESTS = \
|
|||||||
tests/l4rsyncdata.lua
|
tests/l4rsyncdata.lua
|
||||||
|
|
||||||
dist_man1_MANS = doc/lsyncd.1
|
dist_man1_MANS = doc/lsyncd.1
|
||||||
EXTRA_DIST = doc/lsyncd.1.txt doc/lsyncd.1.xml inotify.c fsevents.c bin2carray.lua
|
EXTRA_DIST = doc/lsyncd.1.txt doc/lsyncd.1.xml inotify.c fsevents.c bin2carray.lua \
|
||||||
|
default.lua default-rsync.lua default-rsyncssh.lua default-direct.lua
|
||||||
|
|
||||||
doc/lsyncd.1: doc/lsyncd.1.xml
|
doc/lsyncd.1: doc/lsyncd.1.xml
|
||||||
xsltproc -o $@ -nonet /etc/asciidoc/docbook-xsl/manpage.xsl $<
|
xsltproc -o $@ -nonet /etc/asciidoc/docbook-xsl/manpage.xsl $<
|
||||||
|
@ -35,16 +35,15 @@ default.direct = {
|
|||||||
spawn(
|
spawn(
|
||||||
event,
|
event,
|
||||||
'/bin/mkdir',
|
'/bin/mkdir',
|
||||||
-- '-p',
|
|
||||||
event.targetPath
|
event.targetPath
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
spawn(
|
spawn(
|
||||||
event,
|
event,
|
||||||
'/bin/cp',
|
'/bin/cp',
|
||||||
'-t',
|
event.sourcePath,
|
||||||
event.targetPathdir,
|
-- '-t', not supported on OSX
|
||||||
event.sourcePath
|
event.targetPathdir
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
elseif event.etype == 'Modify' then
|
elseif event.etype == 'Modify' then
|
||||||
|
Loading…
Reference in New Issue
Block a user