4 SYNC
="rsync://mirror.averse.net/gentoo-portage"
10 if [ -t 2 -a ! "$USE_COLOR" = "n" ]; then
11 printf "\033[1;31m==> ERROR:\033[1;0m\033[1;1m ${mesg}\033[1;0m\n" "$@" >&2
13 printf "==> ERROR: ${mesg}\n" "$@" >&2
18 if [ -z "$EUID" -a -x /usr
/bin
/id
]; then
22 if [ "$EUID" != "0" ]; then
23 error
"must run as root."
30 rsync
--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages
--verbose $SYNC $PORTDIR