CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
write warnings and errors to stderr instead of stdout
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 14 Apr 2006 07:34:21 +0000 (09:34 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Fri, 14 Apr 2006 07:34:21 +0000 (09:34 +0200)
ChangeLog
pkgmk.in

index 322c4e3b21c1efb45b3a4ae3dbd7cf9803689905..cdd6f1cc018683baa7b19c0c7dd24b6197f602bf 100644 (file)
--- 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
index 62a74188f61c2bd1340128f106b277bec9e7c6d7..51fd8f6d0faf21493df3eb6b8ac780d7dea67774 100755 (executable)
--- 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