Date: Sat, 25 Sep 1999 00:29:07 +0200 (CEST) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-current@FreeBSD.ORG Subject: Re: ccd build failure Message-ID: <199909242229.AAA04813@dorifer.heim3.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
Warner Losh wrote in list.freebsd-current:
> In message <19990923175400.M10357@futuresouth.com> "Matthew D. Fuller" writes:
> : OK:
> : #!/bin/sh
> : (cvs status | grep '^File:' | grep -v 'Status: Up-to-date$') 2> /dev/null
> ^^ -q
Hm, that variant does not display the directory names at all.
I'd like to propose the following variant. It's a bit longer
than my first proposal, but just as efficient (maybe even more
efficient, because it doesn't have to fork two greps).
#!/bin/sh -
cvs status 2>&1 \
| awk '/^File/ && ! /Status: Up-to-date$/ {
$1 = dir "/" $2;
$2 = "";
print;
}
/cvs server: Examining/ {
dir = $4;
}'
Regards
Oliver
--
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)
"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
(Terry Pratchett)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909242229.AAA04813>
