Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/ports_env.sh
#! /bin/sh | #! /bin/sh | ||||
# | |||||
# Exports and gives export lines that can be evalled by the caller. | |||||
# See export_ports_env() in functions.sh for more information. | |||||
# | |||||
# MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
set -o pipefail | set -o pipefail | ||||
if [ -z "${SCRIPTSDIR}" ]; then | # Backwards compat for Poudriere | ||||
echo "Must set SCRIPTSDIR" >&2 | if [ "${SCRIPTSDIR-__null}" != "__null" ]; then | ||||
dp_SCRIPTSDIR="${SCRIPTSDIR}" | |||||
fi | |||||
if [ "${MAKE-__null}" != "__null" ]; then | |||||
dp_MAKE="${MAKE}" | |||||
fi | |||||
if [ -z "${dp_SCRIPTSDIR}" ]; then | |||||
echo "Must set dp_SCRIPTSDIR" >&2 | |||||
exit 1 | exit 1 | ||||
fi | fi | ||||
. ${SCRIPTSDIR}/functions.sh | . ${dp_SCRIPTSDIR}/functions.sh | ||||
export_ports_env | export_ports_env |