summaryrefslogtreecommitdiff
path: root/mk/bulk/printindex
diff options
context:
space:
mode:
authorgrant <grant>2003-10-11 02:39:24 +0000
committergrant <grant>2003-10-11 02:39:24 +0000
commit2b0b7ff98a0d9e6100763f78ca50ced982c5bb77 (patch)
tree4e0d218a392daaa605a4855cddb493547e62a83c /mk/bulk/printindex
parent6d22559cc567d6351ffc7e58560ff06d47cbc9f5 (diff)
downloadpkgsrc-2b0b7ff98a0d9e6100763f78ca50ced982c5bb77.tar.gz
find the right GREP and SED programs and use them.
Diffstat (limited to 'mk/bulk/printindex')
-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