diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2003-04-08 13:36:45 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2003-04-08 13:36:45 +0000 |
commit | d684f40af67980603f6b73286e853e28e9a80555 (patch) | |
tree | 27b8ac40387d6b64b598f565890a9f1668e1a651 /Tools/scripts/distclean.sh | |
parent | 0dbf789866edebfb6ad6c51d3659567170b10d7a (diff) | |
download | ports-d684f40af67980603f6b73286e853e28e9a80555.tar.gz ports-d684f40af67980603f6b73286e853e28e9a80555.zip |
Speed-up a bit when user keeps his working directories in the ports tree
(doesn't use WRKDIRPREFIX).
Submitted by: ru
Notes
Notes:
svn path=/head/; revision=78597
Diffstat (limited to 'Tools/scripts/distclean.sh')
-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 d6372f70d58c..9e280e5eda0c 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." |