diff options
author | Josef Karthauser <joe@FreeBSD.org> | 2002-09-03 09:08:28 +0000 |
---|---|---|
committer | Josef Karthauser <joe@FreeBSD.org> | 2002-09-03 09:08:28 +0000 |
commit | f6b17d3f6fe8322df5612b1bfc6809505754434e (patch) | |
tree | c7e91f65bc34a5d3c49b3714a09b57983daa5ba3 /Mk | |
parent | Update 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.mk | 2 |
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); }'; \ |