diff options
author | rillig <rillig> | 2006-12-31 13:35:10 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-12-31 13:35:10 +0000 |
commit | 8f19d8ed31b1228d2b2f3701b289e545f04bae3c (patch) | |
tree | 26a39988bf624a25929d77610a6c742accfc301d /mk/check | |
parent | 54e297abd07c44d724ee65da003c36b3a961831e (diff) | |
download | pkgsrc-8f19d8ed31b1228d2b2f3701b289e545f04bae3c.tar.gz |
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 (limited to 'mk/check')
-rw-r--r-- | mk/check/check-portability.sh | 4 | ||||
-rw-r--r-- | mk/check/check-subr.awk | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/mk/check/check-portability.sh b/mk/check/check-portability.sh index 7f5f0024e23..68319563ddf 100644 --- a/mk/check/check-portability.sh +++ b/mk/check/check-portability.sh @@ -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 @@ check_shell() { 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 --git a/mk/check/check-subr.awk b/mk/check/check-subr.awk index efacd8c211b..70a7d2381ee 100644 --- a/mk/check/check-subr.awk +++ b/mk/check/check-subr.awk @@ -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_warning_heading(new_heading) { } 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() { |