build: quiet build and verbose changelog

This commit is contained in:
Ben Grande 2024-06-13 14:03:16 +02:00
parent 7a70535553
commit 3c2bba2a9a
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
4 changed files with 14 additions and 7 deletions

View file

@ -5,15 +5,15 @@
set -eu
missing_program=0
requires_program=""
for pkg in "${@}"; do
if ! command -v "${pkg}" >/dev/null; then
missing_program=1
echo "Missing program: ${pkg}" >&2
requires_program="${requires_program:+"${requires_program} "}${pkg}"
continue
fi
done
if test "${missing_program}" = "1"; then
if test -n "${requires_program}"; then
echo "Missing program(s): ${requires_program}" >&2
exit 1
fi