Commit Graph

11 Commits

Author SHA1 Message Date
maya 6c25dec844 Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@, reviewed by riastradh@
2018-08-22 20:48:36 +00:00
agc b2c422406b Fix PR 39648:
pkglocate --help enters a loop of `grep --help`

by checking the argument before passing it to grep.  Please note that
"grep -e" can't be used because of Solaris options, although I hope to
address that in the next commit.
2010-11-11 19:56:34 +00:00
jschauma 2ce0c09152 Not all OS have grep(1) in /usr/bin/grep, some have it in /sbin/grep, some
in /bin/grep, others in /usr/xpg4/bin/grep.  Since we don't have access
to pkgsrc's variables, rely on grep(1) being in the PATH.

Noted by Roland Illig on tech-pkg.
2004-07-04 16:12:10 +00:00
jmmv d95ff7d33a Use "printf" instead of "echo -n" because it's more portable. 2003-05-31 14:20:46 +00:00
agc b239d597cb Apply mods from PR 14495, from Ryo HAYASAKA (ryoh@jaist.ac.jp), so that
pkglocate now works with description and PLIST files in the package's
main directory.
2001-11-07 22:11:13 +00:00
agc f9ead3743b Update the usage message to explain what each option letter does. 2001-04-03 09:28:32 +00:00
drochner 0c9ba2dcc4 put /usr/sbin into PATH in case user doesn't
otherwise, pkg_info is not found
2001-03-08 11:46:52 +00:00
agc a41926ecac Adapt to the new COMMENT style, which will mean that <category>/pkg
directories are empty, and may get pruned by "cvs [checkout|update]
-P" - check for a category Makefile to work out whether a directory
houses a category, or is some other part of the infrastructure.
2001-02-16 14:00:00 +00:00
agc 957ef127a2 Modify pkglocate to only use agrep if the glimpse package is
installed.  Otherwise fall back to grep(1), in which case approximate
matching (-p) won't work.
2001-02-13 08:18:44 +00:00
jdolecek 6ad47bc6f1 fix to really exit if glimpse is not installed 2000-04-11 16:59:17 +00:00
agc 1ae3b11d04 Add a small shell script to locate words in either the PLIST files or
the package description files, using approximate matching.

# Locate words in description, or files in the PLISTs
#
# [-i] == ignore case when searching
# [-f] == look for a file, rather than a word or phrase
# [-p] == use approximate matching
# [-v] == be verbose
#
# Usage: pkglocate [-i] [-p] [-f] [-v] word
2000-02-21 12:38:54 +00:00