]> source.dussan.org Git - archiva.git/commitdiff
Reverted last revision
authorCarlos Sanchez Gonzalez <carlos@apache.org>
Thu, 24 Aug 2006 18:36:31 +0000 (18:36 +0000)
committerCarlos Sanchez Gonzalez <carlos@apache.org>
Thu, 24 Aug 2006 18:36:31 +0000 (18:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@434462 13f79535-47bb-0310-9956-ffa450edef68

maven-meeper/src/bin/m2-sync/m2-sync.sh

index 6f34e76cd0db027b9ddc32813163db9ee373e4f5..aab66459c8a2e67745b72ce73829383a4755c151 100755 (executable)
@@ -28,23 +28,21 @@ for f in `find conf -iname "*.sh"`
   TO=
   NO_SSH=
   SSH_OPTS=
-  RSYNC=
+  RSYNC_SSH=
 
   source $f
 
   if [ -z $NO_SSH ]
   then
-    RSYNC="rsync --rsh=ssh $SSH_OPTS"
-  else
-    RSYNC="rsync"
+    RSYNC_SSH="--rsh=ssh $SSH_OPTS"
   fi
 
   echo "Syncing $FROM -> $TO"
-  "$RSYNC" --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz $FROM $BASEDIR/$TO
-  "$RSYNC" --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz $FROM $BASEDIR/$TO
+  rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
+  rsync --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
 
   # check for changed files
-  "$RSYNC" -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc $FROM $BASEDIR/$TO >> $CHANGED_LOG
+  rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc "$RSYNC_SSH" $FROM $BASEDIR/$TO >> $CHANGED_LOG
 
 done