1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Add a search target.

This commit is contained in:
Jordan K. Hubbard 1997-03-10 22:59:36 +00:00
parent 8468c52a0a
commit 3cb42d62d4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5933

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.28 1996/12/05 11:09:04 asami Exp $
# $Id: Makefile,v 1.29 1997/03/06 05:52:26 asami Exp $
#
SUBDIR += archivers
@ -48,3 +48,11 @@ ${.CURDIR}/INDEX:
print-index: ${.CURDIR}/INDEX
@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); }' < ${.CURDIR}/INDEX
search: ${.CURDIR}/INDEX
.if !defined(key)
@echo "The search target requires a keyword parameter,"
@echo "e.g.: \"make search key=somekeyword\""
.else
@grep ${key} ${.CURDIR}/INDEX | 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); }'
.endif