1 |
commit: 8a78fdb3fb5592f997a96118611eb6f55846d434 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 30 08:35:02 2022 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 30 08:35:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=8a78fdb3 |
7 |
|
8 |
autoconf-wrapper: use clearer warning/error messages |
9 |
|
10 |
Copy the style used in the automake wrapper over. |
11 |
|
12 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
13 |
|
14 |
ac-wrapper.sh | 5 +++-- |
15 |
1 file changed, 3 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/ac-wrapper.sh b/ac-wrapper.sh |
18 |
index f9b0857..4e0a765 100755 |
19 |
--- a/ac-wrapper.sh |
20 |
+++ b/ac-wrapper.sh |
21 |
@@ -17,8 +17,9 @@ |
22 |
|
23 |
(set -o posix) 2>/dev/null && set -o posix |
24 |
|
25 |
-warn() { printf "ac-wrapper: $*\n" 1>&2; } |
26 |
-err() { warn "$@"; exit 1; } |
27 |
+_stderr() { printf 'ac-wrapper: %s: %b\n' "${argv0}" "$*" 1>&2; } |
28 |
+warn() { _stderr "warning: $*"; } |
29 |
+err() { _stderr "error: $*"; exit 1; } |
30 |
unset IFS |
31 |
which() { |
32 |
local p |