Skip to content

Commit

Permalink
[build] more portable autogen.sh shell script
Browse files Browse the repository at this point in the history
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.
gstrauss committed Oct 24, 2020
1 parent f65b054 commit 7adc662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 7adc662

Please sign in to comment.