Add duplicates check to packing list
This commit is contained in:
parent
3c44565cb0
commit
20e71af37d
@ -1,6 +1,6 @@
|
||||
#-*- mode: Fundamental; tab-width: 4; -*-
|
||||
# ex:ts=4 sw=4 filetype=make:
|
||||
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.283 2000/05/22 13:43:55 espie Exp $$
|
||||
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.284 2000/05/29 16:43:35 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 $
|
||||
#
|
||||
@ -1693,6 +1693,13 @@ ${_PACKAGE_COOKIE}: ${_INSTALL_COOKIE} ${_SUBPACKAGE_COOKIES} ${PLIST}
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi
|
||||
# PLIST should normally hold no duplicates.
|
||||
# This is left as a warning, because stuff such as @exec %F/%D
|
||||
# completion may cause legitimate dups.
|
||||
@duplicates=`sort <${PLIST}|uniq -d`; \
|
||||
case "$${duplicates}" in "");; \
|
||||
*) echo "\n*** WARNING *** Duplicates in PLIST:\n$$duplicates\n";; \
|
||||
esac
|
||||
@cd ${.CURDIR} && \
|
||||
if ${PKG_CMD} ${PKG_ARGS} ${PKGFILE}; then \
|
||||
${MAKE} package-links; \
|
||||
|
Loading…
Reference in New Issue
Block a user