- Revert r329851 and again allow using portsnap's make_index by default,
if available, for 'make index'. This removes the need to have perl installed. [1] - Fix output of the file to have the proper /usr/ports/ORIGIN regardless of real PORTSDIR or CURDIR [2] PR: ports/183095 [1] Submitted by: ak [2] With hat: portmgr
This commit is contained in:
parent
793d69268d
commit
529249e0bb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331775
11
Makefile
11
Makefile
@ -105,11 +105,11 @@ INDEX_SHELL= /bin/sh
|
||||
INDEX_PORTS=.
|
||||
.endif
|
||||
|
||||
#.if exists(/usr/libexec/make_index)
|
||||
#MAKE_INDEX= /usr/libexec/make_index /dev/stdin
|
||||
#.else
|
||||
.if exists(/usr/libexec/make_index)
|
||||
MAKE_INDEX= /usr/libexec/make_index /dev/stdin
|
||||
.else
|
||||
MAKE_INDEX= perl ${.CURDIR}/Tools/make_index
|
||||
#.endif
|
||||
.endif
|
||||
|
||||
${INDEXDIR}/${INDEXFILE}:
|
||||
@${INDEX_ECHO_1ST} "Generating ${INDEXFILE} - please wait.."; \
|
||||
@ -144,7 +144,8 @@ ${INDEXDIR}/${INDEXFILE}:
|
||||
cat $${tmpdir}/${INDEXFILE}.desc.* | (cd ${.CURDIR} ; ${MAKE_INDEX}) | \
|
||||
sed -e 's/ */ /g' -e 's/| */|/g' -e 's/ *|/|/g' -e 's./..g' | \
|
||||
sort -t '|' +1 -2 | \
|
||||
sed -e 's../.g' > ${INDEXDIR}/${INDEXFILE}.tmp; \
|
||||
sed -Ee 's../.g' -e ':a' -e 's|/[^/]+/\.\.||; ta' \
|
||||
-e 's|${.CURDIR}|/usr/ports|g' > ${INDEXDIR}/${INDEXFILE}.tmp; \
|
||||
if [ "${INDEX_PRISTINE}" != "" ]; then \
|
||||
sed -e "s,$${LOCALBASE},/usr/local," ${INDEXDIR}/${INDEXFILE}.tmp > ${INDEXDIR}/${INDEXFILE}; \
|
||||
else \
|
||||
|
Loading…
Reference in New Issue
Block a user