Skip to content

Commit 7adc662

Browse files
committed
[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.
1 parent f65b054 commit 7adc662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autogen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# Run this to generate all the initial makefiles, etc.
33

4-
function errtrace {
4+
errtrace() {
55
echo 1>&2 \
66
"build requires autoconf automake libtool m4 pcre pcre-devel pkg-config"
77
}

0 commit comments

Comments
 (0)