aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-12-01 01:05:38 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-12-01 01:05:38 +0000
commit19997da7f71d9c009f5f3e345e458e3eccc700bb (patch)
treef2f96ac19b5de0f363632d29a3701e0e526e8881 /Makefile
parent16430c8e85969ca84f2103e8494f930b571cae26 (diff)
downloadports-19997da7f71d9c009f5f3e345e458e3eccc700bb.tar.gz
ports-19997da7f71d9c009f5f3e345e458e3eccc700bb.zip
Notes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 584f14380922..debb315ed61f 100644
--- a/Makefile
+++ b/Makefile
@@ -65,14 +65,17 @@ index:
@cd ${.CURDIR} && make ${.CURDIR}/INDEX
${.CURDIR}/INDEX:
- @echo -n "Generating INDEX - please wait.."
- @cd ${.CURDIR} && make describe ECHO_MSG="echo > /dev/null" | \
- perl ${.CURDIR}/Tools/make_index > ${.CURDIR}/INDEX
+ @echo -n "Generating INDEX - please wait.."; \
+ export LOCALBASE=/nonexistentlocal; \
+ export X11BASE=/nonexistentx; \
+ cd ${.CURDIR} && make describe ECHO_MSG="echo > /dev/null" | \
+ perl ${.CURDIR}/Tools/make_index | \
+ sed -e 's/ */ /g' -e 's/| */|/g' -e 's/ *|/|/g' -e "s,${LOCALBASE},/usr/local," -e "s,${X11BASE},/usr/X11R6," > INDEX
.if !defined(INDEX_NOSORT)
@sed -e 's./..g' ${.CURDIR}/INDEX | \
sort -t '|' +1 -2 | \
- sed -e 's../.g' > ${.CURDIR}/INDEX.tmp
- @mv -f ${.CURDIR}/INDEX.tmp ${.CURDIR}/INDEX
+ sed -e 's../.g' > ${.CURDIR}/INDEX.tmp; \
+ mv -f ${.CURDIR}/INDEX.tmp ${.CURDIR}/INDEX
.endif
@echo " Done."