From e55714dd079a329c915776594a06a71252c20474 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Fri, 14 Apr 2006 09:34:21 +0200 Subject: [PATCH] write warnings and errors to stderr instead of stdout --- ChangeLog | 1 + pkgmk.in | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 322c4e3..cdd6f1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,2 +1,3 @@ 2006-04-14 Tilman Sauerbeck (tilman at crux nu) * ChangeLog, NEWS: Moved old ChangeLog to NEWS + * pkgmk.in: Write warnings and errors to stderr instead of stdout diff --git a/pkgmk.in b/pkgmk.in index 62a7418..51fd8f6 100755 --- a/pkgmk.in +++ b/pkgmk.in @@ -25,11 +25,11 @@ info() { } warning() { - info "WARNING: $1" + info "WARNING: $1" >&2 } error() { - info "ERROR: $1" + info "ERROR: $1" >&2 } get_filename() { @@ -194,7 +194,7 @@ check_md5sum() { sed 's/^-/MISSING /g' > $FILE.md5sum.diff if [ -s $FILE.md5sum.diff ]; then error "Md5sum mismatch found:" - cat $FILE.md5sum.diff + cat $FILE.md5sum.diff >&2 if [ "$PKGMK_KEEP_WORK" = "no" ]; then rm -rf $PKGMK_WORK_DIR @@ -294,7 +294,7 @@ check_footprint() { sed 's/^-/MISSING /g' > $FILE.footprint.diff if [ -s $FILE.footprint.diff ]; then error "Footprint mismatch found:" - cat $FILE.footprint.diff + cat $FILE.footprint.diff >&2 BUILD_SUCCESSFUL="no" fi else -- 2.26.2