Lines 4871-4907
Link Here
|
4871 |
.for _type in EXAMPLES DOCS |
4885 |
.for _type in EXAMPLES DOCS |
4872 |
.if !target(add-plist-${_type:tl}) |
4886 |
.if !target(add-plist-${_type:tl}) |
4873 |
.if defined(PORT${_type}) && !defined(NOPORT${_type}) |
4887 |
.if defined(PORT${_type}) && !defined(NOPORT${_type}) |
4874 |
add-plist-${_type:tl}: |
4888 |
add-plist-${_type:tl}: |
4875 |
.for x in ${PORT${_type}} |
4889 |
.for x in ${PORT${_type}} |
4876 |
@if ${ECHO_CMD} "${x}"| ${AWK} '$$1 ~ /(\*|\||\[|\]|\?|\{|\}|\$$)/ { exit 1};'; then \ |
4890 |
@if ${ECHO_CMD} "${x}"| ${AWK} '$$1 ~ /(\*|\||\[|\]|\?|\{|\}|\$$)/ { exit 1};'; then \ |
4877 |
if [ ! -e ${STAGEDIR}${${_type}DIR}/${x} ]; then \ |
4891 |
if [ ! -e ${STAGEDIR}${${_type}DIR}/${x} ]; then \ |
4878 |
${ECHO_CMD} ${${_type}DIR}/${x} >> ${TMPPLIST}; \ |
4892 |
${ECHO_CMD} ${${_type}DIR}/${x} >> ${TMPPLIST}; \ |
4879 |
fi;fi |
4893 |
fi;fi |
4880 |
.endfor |
4894 |
.endfor |
4881 |
@${FIND} -P ${PORT${_type}:S/^/${STAGEDIR}${${_type}DIR}\//} ! -type d 2>/dev/null | \ |
4895 |
@${FIND} -P ${PORT${_type}:S/^/${STAGEDIR}${${_type}DIR}\//} -type d -empty -delete \ |
4882 |
${SED} -ne 's,^${STAGEDIR},,p' >> ${TMPPLIST} |
4896 |
-or ! -type d 2>/dev/null | ${SED} -ne 's,^${STAGEDIR},,p' >> ${TMPPLIST} |
4883 |
.endif |
4897 |
.endif |
4884 |
.endif |
4898 |
.endif |
4885 |
.endfor |
4899 |
.endfor |
4886 |
|
4900 |
|
4887 |
.if !target(add-plist-data) |
4901 |
.if !target(add-plist-data) |
4888 |
.if defined(PORTDATA) |
4902 |
.if defined(PORTDATA) |
4889 |
add-plist-data: |
4903 |
add-plist-data: |
4890 |
.for x in ${PORTDATA} |
4904 |
.for x in ${PORTDATA} |
4891 |
@if ${ECHO_CMD} "${x}"| ${AWK} '$$1 ~ /(\*|\||\[|\]|\?|\{|\}|\$$)/ { exit 1};'; then \ |
4905 |
@if ${ECHO_CMD} "${x}"| ${AWK} '$$1 ~ /(\*|\||\[|\]|\?|\{|\}|\$$)/ { exit 1};'; then \ |
4892 |
if [ ! -e ${STAGEDIR}${DATADIR}/${x} ]; then \ |
4906 |
if [ ! -e ${STAGEDIR}${DATADIR}/${x} ]; then \ |
4893 |
${ECHO_CMD} ${DATADIR}/${x} >> ${TMPPLIST}; \ |
4907 |
${ECHO_CMD} ${DATADIR}/${x} >> ${TMPPLIST}; \ |
4894 |
fi;fi |
4908 |
fi;fi |
4895 |
.endfor |
4909 |
.endfor |
4896 |
@${FIND} -P ${PORTDATA:S/^/${STAGEDIR}${DATADIR}\//} ! -type d 2>/dev/null | \ |
4910 |
@${FIND} -P ${PORTDATA:S/^/${STAGEDIR}${DATADIR}\//} -type d -empty -delete -or \ |
4897 |
${SED} -ne 's,^${STAGEDIR},,p' >> ${TMPPLIST} |
4911 |
! -type d 2>/dev/null | ${SED} -ne 's,^${STAGEDIR},,p' >> ${TMPPLIST} |
4898 |
.endif |
4912 |
.endif |
4899 |
.endif |
4913 |
.endif |
4900 |
|
4914 |
|
4901 |
.if !target(add-plist-info) |
4915 |
.if !target(add-plist-info) |
4902 |
.if defined(INFO) |
4916 |
.if defined(INFO) |
4903 |
add-plist-info: |
4917 |
add-plist-info: |
4904 |
.for i in ${INFO} |
4918 |
.for i in ${INFO} |
4905 |
@${LS} ${STAGEDIR}${PREFIX}/${INFO_PATH}/$i.info* | ${SED} -e s:${STAGEDIR}:@info\ :g >> ${TMPPLIST} |
4919 |
@${LS} ${STAGEDIR}${PREFIX}/${INFO_PATH}/$i.info* | ${SED} -e s:${STAGEDIR}:@info\ :g >> ${TMPPLIST} |
4906 |
.endfor |
4920 |
.endfor |
4907 |
.endif |
4921 |
.endif |