summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2006-12-31 13:35:10 +0000
committerrillig <rillig>2006-12-31 13:35:10 +0000
commit6b4e3e95a1caf99f127c10b3ab86609920f44789 (patch)
tree26a39988bf624a25929d77610a6c742accfc301d
parent98f5539c3948a4438bc1a8a0c2216464a09e9a0a (diff)
downloadpkgsrc-6b4e3e95a1caf99f127c10b3ab86609920f44789.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.sh4
-rw-r--r--mk/check/check-subr.awk8
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() {