summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2002-09-03 09:08:28 +0000
committerJosef Karthauser <joe@FreeBSD.org>2002-09-03 09:08:28 +0000
commitf6b17d3f6fe8322df5612b1bfc6809505754434e (patch)
treec7e91f65bc34a5d3c49b3714a09b57983daa5ba3 /Mk
parentUpdate to version 0.4.4 (diff)
Allow 'make search ...' to work even if the ports tree is symbolically
linked from somewhere else. PR: ports/42060
Notes
Notes: svn path=/head/; revision=65552
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.subdir.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
index 61cdec288761..e677ea728e05 100644
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -252,7 +252,7 @@ README.html:
search: ${PORTSDIR}/INDEX
@here=`pwd`; \
cd ${PORTSDIR}; \
- top=`pwd`; \
+ top=`pwd -P`; \
there=`echo "$$here/" | sed s%$$top%${PORTSDIR}%`; \
if [ -n "$$key" ]; then \
grep $$there ${PORTSDIR}/INDEX | grep -i "${key}" | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9); }'; \