diff options
author | rillig <rillig@pkgsrc.org> | 2006-12-31 13:35:10 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-12-31 13:35:10 +0000 |
commit | 216918d333da2965b910f477b2d078fc361edbf8 (patch) | |
tree | 26a39988bf624a25929d77610a6c742accfc301d | |
parent | 092e7c6f0d549d6059c32598dfe29f8dc0b20d40 (diff) | |
download | pkgsrc-216918d333da2965b910f477b2d078fc361edbf8.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.
-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() { |