find the right GREP and SED programs and use them.
This commit is contained in:
parent
bba9c15fbd
commit
93835fcfa7
1 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue