diff options
author | tv <tv@pkgsrc.org> | 2005-11-02 05:33:38 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-11-02 05:33:38 +0000 |
commit | 601fcf276c17103d1b5de3e59155bb79eddfb28a (patch) | |
tree | c3b9c8b6b620538d026e3f8e7c00a9d1c5e4e7ca /mk | |
parent | 27c19ee0dad48f31de0f0457518edba2a4128420 (diff) | |
download | pkgsrc-601fcf276c17103d1b5de3e59155bb79eddfb28a.tar.gz |
Microoptimization: awk has BRE pattern matching, so use it instead of
"grep | awk".
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bulk/build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bulk/build b/mk/bulk/build index 714440bd1e1..44d17300d1f 100644 --- a/mk/bulk/build +++ b/mk/bulk/build @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: build,v 1.57 2005/09/21 15:46:06 reed Exp $ +# $NetBSD: build,v 1.58 2005/11/02 05:33:38 tv Exp $ # # Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org> @@ -345,7 +345,7 @@ for pkgname in `${PKG_TOOLS_BIN}/pkg_info -e \*` do ${PKG_TOOLS_BIN}/pkg_info -qe $pkgname if [ $? -eq 0 ]; then - pkgdir=`${GREP} " $pkgname " $INDEXFILE | ${AWK} '{print $1}'` + pkgdir=`${AWK} "/ $pkgname /"'{print $1}{}' $INDEXFILE` case "${BULK_PREREQ}" in *$pkgdir* ) echo "Keeping BULK_PREREQ: $pkgname ($pkgdir)" ; |