diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-17 14:32:26 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-17 14:32:26 +0000 |
commit | cc561f7abd23a4d4006e22d86995e82dee1afd8a (patch) | |
tree | 5390e358a0386b2027b40ad8bac03d1034fdae82 /mk/checksum | |
parent | 1057bc0e846032aaae9ccc57b1a61a54533de92f (diff) | |
download | pkgsrc-cc561f7abd23a4d4006e22d86995e82dee1afd8a.tar.gz |
Don't say "ERROR:" or "WARNING:"... be a more typical shell script by
just noting the error or warning to standard error.
Diffstat (limited to 'mk/checksum')
-rwxr-xr-x | mk/checksum/checksum | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/checksum/checksum b/mk/checksum/checksum index f25941a7b5b..4c49299fee8 100755 --- a/mk/checksum/checksum +++ b/mk/checksum/checksum @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: checksum,v 1.7 2006/07/14 16:17:08 jlam Exp $ +# $NetBSD: checksum,v 1.8 2006/07/17 14:32:26 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -149,14 +149,14 @@ fi eval "_alg_${d_alg}=\"$tmp\"" if ${TEST} "$d_checksum" = "IGNORE"; then - ${ECHO} 1>&2 "WARNING: Ignoring checksum for $file" + ${ECHO} 1>&2 "$self: Ignoring checksum for $file" continue fi checksum=`${DIGEST} $d_alg < $file` if ${TEST} "$d_checksum" = "$checksum"; then ${ECHO} "=> Checksum $d_alg OK for $file" else - ${ECHO} 1>&2 "ERROR: Checksum $d_alg mismatch for $file" + ${ECHO} 1>&2 "$self: Checksum $d_alg mismatch for $file" exitcode=1 fi break @@ -170,7 +170,7 @@ fi ${TEST} -n "$tmp" || tmp="$files" if ${TEST} "$tmp" != DONE; then for file in $tmp; do - ${ECHO} 1>&2 "ERROR: No $algorithm checksum recorded for $file" + ${ECHO} 1>&2 "$self: No $algorithm checksum recorded for $file" exitcode=1 done fi |