pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc Not all OS have grep(1) in /usr/bin/grep, some have it...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bd7773eaabfa
branches: trunk
changeset: 477533:bd7773eaabfa
user: jschauma <jschauma%pkgsrc.org@localhost>
date: Sun Jul 04 16:12:10 2004 +0000
description:
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.
diffstat:
pkglocate | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 78aaf3b77587 -r bd7773eaabfa pkglocate
--- a/pkglocate Sun Jul 04 15:59:33 2004 +0000
+++ b/pkglocate Sun Jul 04 16:12:10 2004 +0000
@@ -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 @@
case `pkg_info -e 'glimpse-*'` in
glimpse-*) grepname=agrep ;;
-*) grepname=/usr/bin/grep ;;
+*) grepname=grep ;;
esac
approx=""
Home |
Main Index |
Thread Index |
Old Index