pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/bulk find the right GREP and SED programs and use t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6155af4ee6b8
branches:  trunk
changeset: 462726:6155af4ee6b8
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Oct 11 02:39:24 2003 +0000

description:
find the right GREP and SED programs and use them.

diffstat:

 mk/bulk/printindex |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r e9a79dbd6d3a -r 6155af4ee6b8 mk/bulk/printindex
--- a/mk/bulk/printindex        Fri Oct 10 21:45:55 2003 +0000
+++ b/mk/bulk/printindex        Sat Oct 11 02:39:24 2003 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: printindex,v 1.11 2003/05/06 17:42:04 jmmv Exp $
+# $NetBSD: printindex,v 1.12 2003/10/11 02:39:24 grant Exp $
 #
 #
 # Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -57,15 +57,21 @@
 # /usr/pkgsrc
 cwd=$PWD
 
+# get some initial variables
+cd $cwd/pkgtools/pkglint
+GREP=`${BMAKE} show-var VARNAME=GREP`
+SED=`${BMAKE} show-var VARNAME=SED`
+cd $cwd
+
 # List of all pkgs, from pkgsrc/*/Makefile
-list=`grep '^[[:space:]]*'SUBDIR */Makefile | sed 's,/Makefile.*=[[:space:]]*,/,'`
+list=`${GREP} '^[[:space:]]*'SUBDIR */Makefile | ${SED} 's,/Makefile.*=[[:space:]]*,/,'`
 
 
 for pkgdir in $list
 do
        if [ ! -d $pkgdir ]; then
                echo "WARNING:  the package directory $pkgdir is listed in" > /dev/stderr
-               echo $pkgdir | sed 's;/.*;/Makefile;g' > /dev/stderr
+               echo $pkgdir | ${SED} 's;/.*;/Makefile;g' > /dev/stderr
                echo "but the directory does not exist.  Please fix this!" > /dev/stderr
        else
                cd $pkgdir



Home | Main Index | Thread Index | Old Index