summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2001-06-29 03:39:54 +0000
committerBrian Feldman <green@FreeBSD.org>2001-06-29 03:39:54 +0000
commitfc2c738b5d680a410c82c4840a39aa9692d27f7e (patch)
tree2c026ed90ee1ce876f71a30de1cf99744824b320 /Mk
parentRun mktexlsr at pkg_add time. (diff)
Make 'make search key="something with spaces"' etc. work.
Ignored for: almost a year
Notes
Notes: svn path=/head/; revision=44543
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 40e1f2882c6c..5a6511c54f6f 100644
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -252,7 +252,7 @@ search: ${PORTSDIR}/INDEX
cd ${PORTSDIR}; \
top=`pwd`; \
there=`echo "$$here/" | sed s%$$top%${PORTSDIR}%`; \
- if [ $$key ]; then \
+ 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); }'; \
elif [ $$name ]; then \
grep $$there ${PORTSDIR}/INDEX | grep -i "^[^|]*${name}[^|]*|" | 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); }'; \