pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: pkgsrc/devel/ruby-simpleidn
In message <230808202651.M0104783%mirage.ceres.dti.ne.jp@localhost>
on Tue, 8 Aug 2023 20:26:51 +0900,
Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost> wrote:
> Is there other proper tool to check it?
Here is my simple (but not efficient) script.
Call it egrep-pkgsrc or fgrep-pkgsrc:
% egrep-pkgsrc devel/ruby-simpleidn
% egrep-pkgsrc 'mail/ruby-mime-types$' #
...
----------------------------------------------------------------
#!/bin/sh
base=/usr/pkgsrc
myname=`basename $0`
case "${myname}" in
fgrep*) grep=fgrep;;
grep*) grep=grep;;
*) grep=egrep;;
esac
if [ $# -eq 1 ]; then
base=/usr/pkgsrc
else
case "$1" in
/*) base=$1
shift;;
esac
fi
cd ${base}
find -s [a-x]* -xdev -name CVS -prune -o -type f \( -name 'Makefile*' -o -name '*.mk' \) \! -name '*~' -print 2>/dev/null | xargs ${grep} "$@"
----------------------------------------------------------------
--
Takahiro Kambe <taca%NetBSD.org@localhost>
Home |
Main Index |
Thread Index |
Old Index