aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.subdir.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/bsd.port.subdir.mk
parent77e7ade3955d42997ca77c2032ec8aa766d1402a (diff)
downloadports-fc2c738b5d680a410c82c4840a39aa9692d27f7e.tar.gz
ports-fc2c738b5d680a410c82c4840a39aa9692d27f7e.zip
Notes
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 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); }'; \