diff options
author | sobomax <sobomax@FreeBSD.org> | 2003-04-08 13:36:45 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2003-04-08 13:36:45 +0000 |
commit | df51c0004b626ad356d64a68bfc2b62695bcf611 (patch) | |
tree | 336bafd9a8feec6ada27f764966ce69f5e4d8dbb /Tools/scripts | |
parent | 87f971bb673d703eb133afce65f30956a0290dc3 (diff) | |
download | FreeBSD-ports-df51c0004b626ad356d64a68bfc2b62695bcf611.zip FreeBSD-ports-df51c0004b626ad356d64a68bfc2b62695bcf611.tar.gz |
Speed-up a bit when user keeps his working directories in the ports tree
(doesn't use WRKDIRPREFIX).
Submitted by: ru
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/distclean.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/scripts/distclean.sh b/Tools/scripts/distclean.sh index d6372f7..9e280e5 100755 --- a/Tools/scripts/distclean.sh +++ b/Tools/scripts/distclean.sh @@ -14,7 +14,7 @@ # Maxim Sobolev # ---------------------------------------------------------------------------- # -# $FreeBSD: /tmp/pcvs/ports/Tools/scripts/distclean.sh,v 1.14 2002-05-10 14:16:18 sobomax Exp $ +# $FreeBSD: /tmp/pcvs/ports/Tools/scripts/distclean.sh,v 1.15 2003-04-08 13:36:45 sobomax Exp $ # # MAINTAINER= sobomax@FreeBSD.org @@ -58,7 +58,10 @@ trap cleanup 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 21 22 23 24 25 26 27 28 \ 30 31 echo -n "Building ports md5 index..." -find ${PORTSDIR}/ -name "distinfo" -or -name "distinfo.i386" -or -name "distinfo.alpha" -type f | xargs cat | grep "^MD5 ("| sort | uniq > $FN_PORTS +find ${PORTSDIR}/ \ + \( -name "distinfo" -or -name "distinfo.i386" -or -name "distinfo.alpha" \) \ + -type f -mindepth 3 -maxdepth 3 | \ + xargs cat | grep '^MD5 ('| sort -u > $FN_PORTS echo "Done." P_MD5_COUNT=`wc -l $FN_PORTS | sed "s| $FN_PORTS|| ; s| ||g"` echo "Found $P_MD5_COUNT md5 entries in your ports directory." |