svn commit: r518058 - head/Mk

John Baldwin jhb at FreeBSD.org
Wed Nov 20 22:44:38 UTC 2019


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}


More information about the svn-ports-all mailing list