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