#!/bin/sh
# $Id$

source /sbin/functions.sh

MAKECONF="/etc/make.conf"
ROOT="/tmp"
overlayList=$(grep "PORTDIR_OVERLAY=" ${MAKECONF} | sed 's/^.*=//;s/"//g')
if [ ! -z "${overlayList}" ]; then
    for each in ${overlayList}
    do
	ebegin "Importing ${each} into ${ROOT}"
	    rsync -aR --exclude .svn --exclude CVS "${each}" "${ROOT}"
	eend ${?}
    done
    exit 0
fi
exit 1
							
