From 7adc66259e25469d6cbfcebe5b78ef39fb5d431b Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Fri, 23 Oct 2020 13:00:13 -0400 Subject: [build] more portable autogen.sh shell script Use more portable shell function definition, better supported by /bin/sh Some /bin/sh, e.g. dash, do not support trap on ERR, so that will issue some trace and will not trigger on ERR, but the rest of the script runs fine. --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 6a2ecd8b..e625b8f3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,7 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -function errtrace { +errtrace() { echo 1>&2 \ "build requires autoconf automake libtool m4 pcre pcre-devel pkg-config" } -- cgit v1.2.1