OSX cp cannot do -t

This commit is contained in:
Axel Kittenberger 2012-02-16 14:15:48 +01:00
parent 08ad1f4151
commit 1f7cac3bc0
2 changed files with 5 additions and 5 deletions

View File

@ -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 $<

View File

@ -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