summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-10-11 02:39:24 +0000
committergrant <grant@pkgsrc.org>2003-10-11 02:39:24 +0000
commit93835fcfa7badf3d4d6b54565d0430c8c91a1d15 (patch)
tree4e0d218a392daaa605a4855cddb493547e62a83c /mk
parentbba9c15fbddeee7d2566ccfc35fc3cbab1b95a72 (diff)
downloadpkgsrc-93835fcfa7badf3d4d6b54565d0430c8c91a1d15.tar.gz
find the right GREP and SED programs and use them.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/printindex12
1 files changed, 9 insertions, 3 deletions
diff --git a/mk/bulk/printindex b/mk/bulk/printindex
index 06a832c3607..c377fbfaeef 100644
--- a/mk/bulk/printindex
+++ b/mk/bulk/printindex
@@ -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 @@ fi
# /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