aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.subdir.mk
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-09-03 17:08:28 +0800
committerjoe <joe@FreeBSD.org>2002-09-03 17:08:28 +0800
commit4bcc70f4bcb7c2392104f72f5a424d36ccfdaee6 (patch)
tree38df75d41bef7b709f4d416604d86a0e1364617d /Mk/bsd.port.subdir.mk
parent3ba3d1f44aeefdeb0696aeb5d33dd122a99d15bb (diff)
downloadfreebsd-ports-gnome-4bcc70f4bcb7c2392104f72f5a424d36ccfdaee6.tar.gz
freebsd-ports-gnome-4bcc70f4bcb7c2392104f72f5a424d36ccfdaee6.tar.zst
freebsd-ports-gnome-4bcc70f4bcb7c2392104f72f5a424d36ccfdaee6.zip
Allow 'make search ...' to work even if the ports tree is symbolically
linked from somewhere else. PR: ports/42060
Diffstat (limited to 'Mk/bsd.port.subdir.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); }'; \