minisketch
minisketch copied to clipboard
feat(build): improve dependency check and error message in autogen.sh
Three changes:
- Improve error reporting in
autogen.shby redirecting the autoreconf dependency check's error message to stderr. - Use
command -vinstead ofwhichin 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 -vinstead 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.
Reopened PR with an addition change ("3." in the description).