aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-02-20 13:47:37 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-02-20 13:47:37 +0000
commitabc0d8ffc4ec1a5ecb75702c4b758027b059d657 (patch)
tree3764d27b3fcc06dab8c8b7b3bd6cef8f5d2f5422
parent086350e5c73c33a5b5046e7d0aa7e39691419ad7 (diff)
downloadpaludis-abc0d8ffc4ec1a5ecb75702c4b758027b059d657.tar.gz
paludis-abc0d8ffc4ec1a5ecb75702c4b758027b059d657.tar.xz
Add rsync+ssh.
-rw-r--r--paludis/syncers/Makefile.am5
-rw-r--r--paludis/syncers/dorsync.in3
2 files changed, 6 insertions, 2 deletions
diff --git a/paludis/syncers/Makefile.am b/paludis/syncers/Makefile.am
index b72ed13..e54d3b8 100644
--- a/paludis/syncers/Makefile.am
+++ b/paludis/syncers/Makefile.am
@@ -1,5 +1,5 @@
MAINTAINERCLEANFILES = Makefile.in
-CLEANFILES = *~ .keep docvs+ext docvs+pserver docvs+ssh dodarcs+file dodarcs+http dodarcs+https dodarcs+ssh dofile dogit dogit+file dogit+http dogit+https dogit+rsync dogit+ssh dorsync dosvn dosvn+file dosvn+http dosvn+https dosvn+ssh dotar+file dotar+ftp dotar+http dotar+https
+CLEANFILES = *~ .keep docvs+ext docvs+pserver docvs+ssh dodarcs+file dodarcs+http dodarcs+https dodarcs+ssh dofile dogit dogit+file dogit+http dogit+https dogit+rsync dogit+ssh dorsync dorsync+ssh dosvn dosvn+file dosvn+http dosvn+https dosvn+ssh dotar+file dotar+ftp dotar+http dotar+https
SUBDIRS = .
.keep :
@@ -23,6 +23,7 @@ libexecprog_SCRIPTS = \
dogit+rsync \
dogit+ssh \
dorsync \
+ dorsync+ssh \
dosvn \
dosvn+file \
dosvn+http \
@@ -57,7 +58,7 @@ dodarcs+file dodarcs+http dodarcs+https dodarcs+ssh : dodarcs.in
cat $? > $@
dogit dogit+file dogit+http dogit+https dogit+rsync dogit+ssh : dogit.in
cat $? > $@
-dofile dorsync : dorsync.in
+dofile dorsync dorsync+ssh : dorsync.in
cat $? > $@
dosvn dosvn+file dosvn+http dosvn+https dosvn+ssh : dosvn.in
cat $? > $@
diff --git a/paludis/syncers/dorsync.in b/paludis/syncers/dorsync.in
index 28c37bd..fb25832 100644
--- a/paludis/syncers/dorsync.in
+++ b/paludis/syncers/dorsync.in
@@ -37,6 +37,8 @@ while [[ $# -gt 0 ]]; do
echo " URL syntax: ${PROTO}://[USERNAME@]SERVER[:PORT]/PATH"
elif [[ "${PROTO}" == file ]]; then
echo " URL syntax: file:///PATH"
+ elif [[ "${PROTO}" == 'rsync+ssh' ]]; then
+ echo " URL syntax: rsync+ssh://[USERNAME@]SERVER:/PATH"
else
ewarn "URL syntax for ${PROTO} is unknown. This script will likely not work with the ${PROTO} protocol"
fi
@@ -76,6 +78,7 @@ elif [[ -z "${REMOTE}" ]]; then
fi
REMOTE="${REMOTE#file://}"
+REMOTE="${REMOTE#rsync+ssh://}"
${RSYNC_WRAPPER} rsync --recursive --links --safe-links --perms --times \
--compress --force --whole-file --delete --delete-after --stats --timeout=180 \