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