Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets Use ${CKSUM} rather than cksum if the former's ...
details: https://anonhg.NetBSD.org/src/rev/57676e8d8ba1
branches: trunk
changeset: 524838:57676e8d8ba1
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sun Mar 31 15:17:58 2002 +0000
description:
Use ${CKSUM} rather than cksum if the former's defined.
diffstat:
distrib/sets/makesums | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 4065fb0ba9e5 -r 57676e8d8ba1 distrib/sets/makesums
--- a/distrib/sets/makesums Sun Mar 31 15:01:39 2002 +0000
+++ b/distrib/sets/makesums Sun Mar 31 15:17:58 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: makesums,v 1.2 2000/08/20 08:29:59 toddpw Exp $
+# $NetBSD: makesums,v 1.3 2002/03/31 15:17:58 bjh21 Exp $
#
# Make checksum files for files in ``tardir''. Usage:
# makesums [-t tardir] [ -all ] [setname ...]
@@ -18,6 +18,7 @@
#
# set defaults
+: ${CKSUM=cksum}
: ${MAKE=make} # XXX: what purpose does this serve??
tars=$RELEASEDIR
dash_all=no
@@ -62,8 +63,8 @@
fi
lists=`find $pat -prune -type f \! -name '*SUM' \! -name MD5 2>/dev/null`
if [ -n "$lists" ]; then
- cksum -o1 $lists > BSDSUM
- cksum $lists > CKSUM
- cksum -m $lists > MD5
- cksum -o2 $lists > SYSVSUM
+ ${CKSUM} -o1 $lists > BSDSUM
+ ${CKSUM} $lists > CKSUM
+ ${CKSUM} -m $lists > MD5
+ ${CKSUM} -o2 $lists > SYSVSUM
fi
Home |
Main Index |
Thread Index |
Old Index