diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-06-06 18:05:06 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-06-06 18:05:06 +0800 |
commit | afd161999d5a1a6c5364fb526a3b14385400a9f4 (patch) | |
tree | 47a2f6193b4db60c44f6b7a90ba5274459510dcb /Tools | |
parent | 0447a40186929acff5759ef1e50471c459abd75a (diff) | |
download | freebsd-ports-gnome-afd161999d5a1a6c5364fb526a3b14385400a9f4.tar.gz freebsd-ports-gnome-afd161999d5a1a6c5364fb526a3b14385400a9f4.tar.zst freebsd-ports-gnome-afd161999d5a1a6c5364fb526a3b14385400a9f4.zip |
Add a traling slash ("/") to the /usr/ports/ and /usr/ports/distfiles/ to make
the script working for the cases when either one directory is a symlink.
Submitted by: Juriy Goloveshkin <juriy@avias.com>, Volodymyr Kostyrko <arcade@limbo.dn.ua>
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/distclean.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/distclean.sh b/Tools/scripts/distclean.sh index b7aa43de992b..2449af496d6d 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.2 2000-06-05 15:50:32 sobomax Exp $ +# $FreeBSD: /tmp/pcvs/ports/Tools/scripts/distclean.sh,v 1.3 2000-06-06 10:05:06 sobomax Exp $ # # MAINTAINER= sobomax@FreeBSD.org @@ -31,13 +31,13 @@ FN_DISTFILES=`mktemp -t dclean` || exit 1 FN_RESULTS_SCRIPT=`mktemp -t dclean` || exit 1 echo -n "Building ports md5 index..." -find /usr/ports -name "md5" -type f | xargs cat | grep "^MD5 ("| sort | uniq > $FN_PORTS +find /usr/ports/ -name "md5" -type f | xargs cat | grep "^MD5 ("| sort | uniq > $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." echo -n "Building distfiles md5 index..." -find -H /usr/ports/distfiles -type f | xargs md5 | sed 's|/usr/ports/distfiles/||' | sort > $FN_DISTFILES +find /usr/ports/distfiles/ -type f | xargs md5 | sed 's|/usr/ports/distfiles/||' | sort > $FN_DISTFILES echo "Done." D_MD5_COUNT=`wc -l $FN_DISTFILES | sed "s| $FN_DISTFILES|| ; s| ||g"` echo "Found $D_MD5_COUNT distfile(s) in your distfiles directory." |