1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Make 'make search key="something with spaces"' etc. work.

Ignored for:	almost a year
This commit is contained in:
Brian Feldman 2001-06-29 03:39:54 +00:00
parent 77e7ade395
commit fc2c738b5d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44543

View File

@ -252,7 +252,7 @@ search: ${PORTSDIR}/INDEX
cd ${PORTSDIR}; \ cd ${PORTSDIR}; \
top=`pwd`; \ top=`pwd`; \
there=`echo "$$here/" | sed s%$$top%${PORTSDIR}%`; \ 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); }'; \ 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 \ 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); }'; \ 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); }'; \