Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/find-lib.sh
#!/bin/sh | #!/bin/sh | ||||
# MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
set -o pipefail | |||||
[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_FIND_LIB}" ] && set -x | [ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_FIND_LIB}" ] && set -x | ||||
if [ -z "${LIB_DIRS}" -o -z "${LOCALBASE}" ]; then | if [ -z "${LIB_DIRS}" -o -z "${LOCALBASE}" ]; then | ||||
echo "LIB_DIRS, LOCALBASE required in environment." >&2 | echo "LIB_DIRS, LOCALBASE required in environment." >&2 | ||||
exit 1 | exit 1 | ||||
fi | fi | ||||
if [ -f /usr/share/misc/magic.mime -o -f /usr/share/misc/magic.mime.mgc ]; then | if [ -f /usr/share/misc/magic.mime -o -f /usr/share/misc/magic.mime.mgc ]; then | ||||
Show All 21 Lines |