summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-07-04 16:12:10 +0000
committerjschauma <jschauma>2004-07-04 16:12:10 +0000
commit8a3f91c929de207e3445151327034a2048b697b3 (patch)
tree13c12a352a1da8af5982cc196cfd506e904f57dd
parent556e31564dac2e8f9bcdf05e56095de87203aced (diff)
downloadpkgsrc-8a3f91c929de207e3445151327034a2048b697b3.tar.gz
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.
-rwxr-xr-xpkglocate4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkglocate b/pkglocate
index adf82e70c91..474b2fae1d3 100755
--- a/pkglocate
+++ b/pkglocate
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: pkglocate,v 1.8 2003/05/31 14:20:46 jmmv Exp $
+# $NetBSD: pkglocate,v 1.9 2004/07/04 16:12:10 jschauma Exp $
#
#-
# Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@ PATH=${PATH}:/usr/sbin
case `pkg_info -e 'glimpse-*'` in
glimpse-*) grepname=agrep ;;
-*) grepname=/usr/bin/grep ;;
+*) grepname=grep ;;
esac
approx=""