pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/check Made the portability check more portable by n...
details: https://anonhg.NetBSD.org/pkgsrc/rev/810f0dd41ee6
branches: trunk
changeset: 522925:810f0dd41ee6
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Dec 31 13:35:10 2006 +0000
description:
Made the portability check more portable by not using a hard-coded
"/dev/stderr" in the AWK programs. That device file doesn't exist on
IRIX, and it isn't required by POSIX either.
diffstat:
mk/check/check-portability.sh | 4 ++--
mk/check/check-subr.awk | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r b9c4b528d395 -r 810f0dd41ee6 mk/check/check-portability.sh
--- a/mk/check/check-portability.sh Sun Dec 31 09:48:21 2006 +0000
+++ b/mk/check/check-portability.sh Sun Dec 31 13:35:10 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-portability.sh,v 1.4 2006/12/12 21:10:41 rillig Exp $
+# $NetBSD: check-portability.sh,v 1.5 2006/12/31 13:35:10 rillig Exp $
#
# This program checks the extracted files for portability issues that
# are likely to result in false assumptions by the package.
@@ -22,7 +22,7 @@
CK_PROGNAME="check-portability.awk" \
awk -f "$PKGSRCDIR/mk/check/check-subr.awk" \
-f "$PKGSRCDIR/mk/check/check-portability.awk" \
- < "$1" \
+ < "$1" 1>&2 \
|| cs_exitcode=1
}
diff -r b9c4b528d395 -r 810f0dd41ee6 mk/check/check-subr.awk
--- a/mk/check/check-subr.awk Sun Dec 31 09:48:21 2006 +0000
+++ b/mk/check/check-subr.awk Sun Dec 31 13:35:10 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-subr.awk,v 1.2 2006/11/11 23:59:56 rillig Exp $
+# $NetBSD: check-subr.awk,v 1.3 2006/12/31 13:35:10 rillig Exp $
#
# This file contains functions that are used by the various awk
# programs that check things in pkgsrc. All these programs must be
@@ -39,16 +39,16 @@
}
function cs_error_msg(msg) {
- printf("ERROR: [%s] %s\n", cs_progname, msg) > "/dev/stderr";
+ printf("ERROR: [%s] %s\n", cs_progname, msg);
cs_exitcode = 1;
}
function cs_warning_msg(msg) {
- printf("WARNING: [%s] %s\n", cs_progname, msg) > "/dev/stderr";
+ printf("WARNING: [%s] %s\n", cs_progname, msg);
}
function cs_explain(msg) {
- printf("\nExplanation:\n%s\n%s%s\n\n", cs_hline, msg, cs_hline) > "/dev/stderr";
+ printf("\nExplanation:\n%s\n%s%s\n\n", cs_hline, msg, cs_hline);
}
function cs_exit() {
Home |
Main Index |
Thread Index |
Old Index