Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Scripts/check_leftovers.sh
Show All 17 Lines | |||||
# | # | ||||
# stdout: | # stdout: | ||||
# same -/+/M format, but with files substituted, without approved | # same -/+/M format, but with files substituted, without approved | ||||
# whitelisted files, and hides any directories already in plist. | # whitelisted files, and hides any directories already in plist. | ||||
# | # | ||||
# The PLIST_SUB feature can be disabled by setting PLIST_SUB_SED= | # The PLIST_SUB feature can be disabled by setting PLIST_SUB_SED= | ||||
# in environment. | # in environment. | ||||
set -o pipefail | |||||
[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_CHECK_LEFTOVERS}" ] && set -x | [ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_CHECK_LEFTOVERS}" ] && set -x | ||||
origin="$1" | origin="$1" | ||||
[ $# -eq 1 ] || { echo "Must supply ORIGIN as parameter" >&2; exit 1; } | [ $# -eq 1 ] || { echo "Must supply ORIGIN as parameter" >&2; exit 1; } | ||||
[ -n "${PORTSDIR}" ] || { echo "PORTSDIR must be set" >&2; exit 1; } | [ -n "${PORTSDIR}" ] || { echo "PORTSDIR must be set" >&2; exit 1; } | ||||
# May be passed in from environment if using an overlay. | # May be passed in from environment if using an overlay. | ||||
: ${portdir:="${PORTSDIR}/${origin}"} | : ${portdir:="${PORTSDIR}/${origin}"} | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |