Age | Commit message (Collapse) | Author | Files | Lines |
|
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@
|
|
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.
|
|
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.
|
|
|
|
pkglocate now works with description and PLIST files in the package's
main directory.
|
|
|
|
otherwise, pkg_info is not found
|
|
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.
|
|
installed. Otherwise fall back to grep(1), in which case approximate
matching (-p) won't work.
|
|
|
|
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
|