minisketch
minisketch copied to clipboard
feat(build): improve dependency check and error message in autogen.sh
Three changes:
- Improve error reporting in
autogen.sh
by redirecting the autoreconf dependency check's error message to stderr. - Use
command -v
instead ofwhich
in the script. - Replace legacy backtick substitution with modern
$(...)
command substitution.
Impact
This PR modifies autogen.sh
in the root directory.
- No change to the functional behavior of these files.
- Enhances error reporting by directing error messages to stderr, aligning with best practices.
- Improves portability/reliability by using
command -v
instead ofwhich
. (Link to ShellCheck rule for context.) - Improves portability/reliability by using modern
$(...)
command substitution. (Link to Shellcheck rule for context.)
Background
5 years ago: Created the entire file with no other updates.