On Mon, Aug 20, 2001 at 10:49:47PM -0700, Tim Howe wrote:
> I'll look at these and see if any meet my needs. Thanks! =]
In case I missed some, run this in /usr/ports/net ...
#!/bin/sh
for i in `ls`; do
if [ -f ${i}/Makefile ]; then
cd ${i}
echo -n "${i}\t" && make show=COMMENT
cd ..
fi
done
Or this ...
#!/usr/bin/perl
foreach (`ls`) {
chomp;
if (-f "$_/Makefile") {
chdir $_;
print "$_\t" . `make show=COMMENT`;
chdir '..';
}
}
time says the sh code is slightly quicker, but uses sligtly more cpu ...
--
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>