|
@ -7,11 +7,19 @@ RSYNCOPT="$RSYNCOPT --exclude data.cdb" |
|
|
#RSYNCOPT="$RSYNCOPT --dry-run" |
|
|
#RSYNCOPT="$RSYNCOPT --dry-run" |
|
|
RSYNCOPT="$RSYNCOPT --delete --delete-after" |
|
|
RSYNCOPT="$RSYNCOPT --delete --delete-after" |
|
|
|
|
|
|
|
|
|
|
|
if [ "$(echo -e .)" = "." ]; then |
|
|
|
|
|
ECHO="echo -e" |
|
|
|
|
|
else |
|
|
|
|
|
ECHO="echo" |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
while read REMOTE PORT DIR; do |
|
|
while read REMOTE PORT DIR; do |
|
|
( |
|
|
( |
|
|
export RSYNC_RSH="ssh -p $PORT" |
|
|
export RSYNC_RSH="ssh -p $PORT" |
|
|
echo "=== $REMOTE:$PORT ($DIR) ===" |
|
|
|
|
|
|
|
|
$ECHO "\n=== $REMOTE:$PORT ($DIR) ===" |
|
|
rsync $RSYNCOPT data/stage/ "$REMOTE:$DIR/" && |
|
|
rsync $RSYNCOPT data/stage/ "$REMOTE:$DIR/" && |
|
|
ssh -p $PORT $REMOTE make -B -C "$DIR/" data.cdb |
|
|
ssh -p $PORT $REMOTE make -B -C "$DIR/" data.cdb |
|
|
|
|
|
$ECHO "-----> errno: $?" |
|
|
) < /dev/null |
|
|
) < /dev/null |
|
|
done < root/farm.txt |
|
|
done < root/farm.txt |
|
|
|
|
|
true |