3 RSYNCSOURCE="rsync://rsync-origin.macports.org"
4 BASEDIR="$MIRRORDIR/macports"
6 RSYNC_MODULES="packages distfiles release trunk"
8 RSYNC_ARGS="--compress --delete-delay --hard-links --links --no-motd --perms --recursive --stats --timeout=600 --times"
10 for RSYNC_MODULE in $RSYNC_MODULES; do
11 RSYNC_URL="${RSYNCSOURCE}/${RSYNC_MODULE}"
12 echo "Syncing $RSYNC_MODULE from $RSYNC_URL"
13 mkdir -p "${BASEDIR}/${RSYNC_MODULE}"
14 rsync $RSYNC_ARGS "$RSYNC_URL" "$BASEDIR/$RSYNC_MODULE"