From c11b8cf59bf7d8819c1f92e3fe425e9662ce7256 Mon Sep 17 00:00:00 2001 From: espie Date: Fri, 30 Mar 2007 08:59:07 +0000 Subject: [PATCH] make sha256 stuff linked as well. --- infrastructure/fetch/link-checksums | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/infrastructure/fetch/link-checksums b/infrastructure/fetch/link-checksums index 5f76d53fc73..9ce226b63ba 100644 --- a/infrastructure/fetch/link-checksums +++ b/infrastructure/fetch/link-checksums @@ -10,7 +10,7 @@ DISTDIR=${DISTDIR:-/usr/ports/distfiles} cd ${DISTDIR} -CIPHERS=${CIPHERS:-sha1 md5 rmd160} +CIPHERS=${CIPHERS:-sha1 md5 rmd160 sha256} # Build the find so that existing cipher dirs are avoided exclude='' @@ -24,11 +24,14 @@ done echo "find . \( $exclude \) -o -type f -print" find . \( $exclude \) -o -type f -print | while read i do + file=`basename $i` for ci in ${CIPHERS} do - result=`$ci <$i` - file=`basename $i` + result=`cksum -a $ci <$i` mkdir -p $ci/$result ln -f $i $ci/$result/$file +# result=`cksum -a $ci -b <$i` +# mkdir -p $ci/$result +# ln -f $i $ci/$result/$file done done