]> asedeno.scripts.mit.edu Git - sipb-mirrors.git/blob - fetch-scripts/macports
Added --verbose flag to the macports script
[sipb-mirrors.git] / fetch-scripts / macports
1 #!/bin/sh
2
3 RSYNCSOURCE="rsync://rsync-origin.macports.org"
4 BASEDIR="$MIRRORDIR/macports"
5
6 RSYNC_MODULES="packages distfiles release trunk"
7
8 RSYNC_ARGS="--compress --delete-delay --hard-links --links --no-motd --perms --recursive --stats --verbose --timeout=600 --times"
9
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"
15     echo
16 done
17