Crude check for broken links in fake install.

This commit is contained in:
espie 2000-03-21 21:23:54 +00:00
parent 3616337cda
commit eac4754f84

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.232 2000/03/21 21:06:58 espie Exp $$
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.233 2000/03/21 21:23:54 espie Exp $$
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -1453,6 +1453,10 @@ ${_FAKE_COOKIE}: ${_BUILD_COOKIE}
. endfor
. endif
. endif
@if find ${WRKINST} -type l -ls|fgrep -- '-> ${WRKINST}'; then \
echo >&2 "*** bad links in ${WRKINST}"; \
exit 1; \
fi
@${_MAKE_COOKIE} ${_FAKE_COOKIE}
${_INSTALL_COOKIE}: ${_PACKAGE_COOKIE}