aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-30 03:35:02 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-30 03:35:02 -0500
commit8a78fdb3fb5592f997a96118611eb6f55846d434 (patch)
tree409ef873d1df2615bbfb3debf034292825eb3a1b
parentautoconf-wrapper: try to enable shell POSIX mode if available (diff)
downloadautotools-wrappers-8a78fdb3fb5592f997a96118611eb6f55846d434.tar.gz
autotools-wrappers-8a78fdb3fb5592f997a96118611eb6f55846d434.tar.bz2
autotools-wrappers-8a78fdb3fb5592f997a96118611eb6f55846d434.zip
autoconf-wrapper: use clearer warning/error messages
Copy the style used in the automake wrapper over. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xac-wrapper.sh5
1 files 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