Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/sets - cksum -m -> cksum -a md5.



details:   https://anonhg.NetBSD.org/src/rev/7a9397f31e7c
branches:  trunk
changeset: 584337:7a9397f31e7c
user:      elad <elad%NetBSD.org@localhost>
date:      Tue Sep 13 16:38:01 2005 +0000

description:
- cksum -m -> cksum -a md5.
- Generate SHA512 checksums too.

Is there any reason to still generate MD5 checksums?

diffstat:

 distrib/sets/makesums |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r af78a18557ff -r 7a9397f31e7c distrib/sets/makesums
--- a/distrib/sets/makesums     Tue Sep 13 16:35:24 2005 +0000
+++ b/distrib/sets/makesums     Tue Sep 13 16:38:01 2005 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: makesums,v 1.7 2004/04/20 05:37:15 lukem Exp $
+# $NetBSD: makesums,v 1.8 2005/09/13 16:38:01 elad Exp $
 #
 # Make checksum files for files in ``tardir''.  Usage:
 # makesums [-a] [-t tardir] [setname [...]]
@@ -63,10 +63,11 @@
 elif [ -z "$pat" ]; then
        pat='*.tgz'
 fi
-lists=$(find $pat -prune \( -type f -o -type l \) \! -name '*SUM' \! -name MD5 2>/dev/null)
+lists=$(find $pat -prune \( -type f -o -type l \) \! -name '*SUM' \! -name MD5 \! -name SHA512 2>/dev/null)
 if [ -n "$lists" ]; then
        ${CKSUM} -o1 $lists > BSDSUM
        ${CKSUM}     $lists > CKSUM
-       ${CKSUM} -m  $lists > MD5
+       ${CKSUM} -a md5  $lists > MD5
        ${CKSUM} -o2 $lists > SYSVSUM
+       ${CKSUM} -a sha512  $lists > SHA512
 fi



Home | Main Index | Thread Index | Old Index