2015-08-14 19:35:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# set PORTDIR
|
|
|
|
|
2015-08-19 23:04:52 +00:00
|
|
|
PORTDIR="$(${CAVE} print-repository-metadata --format '%v' --raw-name location gentoo)"
|
2015-08-14 19:35:32 +00:00
|
|
|
|
|
|
|
if [[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] ; then
|
|
|
|
die "PORTDIR empty or pointing to root!"
|
|
|
|
elif [[ ! -e ${PORTDIR} ]] ; then
|
|
|
|
die "${PORTDIR} does not exist!"
|
|
|
|
fi
|