2015-08-14 19:35:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# set PORTDIR
|
|
|
|
|
2015-08-26 10:53:42 +00:00
|
|
|
source "${PALUDIS_EBUILD_DIR}/die_functions.bash"
|
|
|
|
|
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
|