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
This commit is contained in:
John Baldwin 2019-11-20 22:44:38 +00:00
parent b92b93b0ce
commit e4f098d6a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=518058

View file

@ -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}