pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/checksum Don't say "ERROR:" or "WARNING:"... be a m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/02104ffe8702
branches:  trunk
changeset: 516211:02104ffe8702
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Jul 17 14:32:26 2006 +0000

description:
Don't say "ERROR:" or "WARNING:"... be a more typical shell script by
just noting the error or warning to standard error.

diffstat:

 mk/checksum/checksum |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 81d5f485a81c -r 02104ffe8702 mk/checksum/checksum
--- a/mk/checksum/checksum      Mon Jul 17 14:30:05 2006 +0000
+++ b/mk/checksum/checksum      Mon Jul 17 14:32:26 2006 +0000
@@ -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 @@
                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 @@
        ${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



Home | Main Index | Thread Index | Old Index