Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2019 22:44:38 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518058 - head/Mk
Message-ID:  <201911202244.xAKMicmq003620@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb (src,doc committer)
Date: Wed Nov 20 22:44:38 2019
New Revision: 518058
URL: https://svnweb.freebsd.org/changeset/ports/518058

Log:
  Permit multiple packing list files to be listed in PLIST.
  
  This permits a port to use separate packing lists for optional
  components instead of depending on PLIST_SUB.
  
  Approved by:	portmgr (bapt)
  Differential Revision:	https://reviews.freebsd.org/D22450

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Wed Nov 20 22:00:03 2019	(r518057)
+++ head/Mk/bsd.port.mk	Wed Nov 20 22:44:38 2019	(r518058)
@@ -4464,9 +4464,11 @@ generate-plist: ${WRKDIR}
 		${ECHO_CMD} $${file} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} >> ${TMPPLIST}; \
 	done
 .if !empty(PLIST)
-	@if [ -f ${PLIST} ]; then \
-		${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} >> ${TMPPLIST}; \
+.for f in ${PLIST}
+	@if [ -f "${f}" ]; then \
+		${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${f} >> ${TMPPLIST}; \
 	fi
+.endfor
 .endif
 
 .for dir in ${PLIST_DIRS}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911202244.xAKMicmq003620>