build: fail on errors when installing chktex (#5214)

Refactor the chktex installation scripts because lists of commands don't
fail if one of them exits with an error, even if set -e (errexit) is
set.

See the Bash reference manual, section 4.3.1 'The Set Builtin'.
This commit is contained in:
Marco Ferrari 2024-02-05 10:31:43 +01:00 committed by GitHub
parent 5c67776f9d
commit 92e9cb3c85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,12 +11,13 @@ apk add --no-cache --virtual .chktex-build-deps \
libtool \
make
git clone https://git.savannah.gnu.org/git/chktex.git &&
cd chktex/chktex &&
./autogen.sh --prefix=/usr/bin &&
./configure &&
make &&
install chktex /usr/bin
git clone https://git.savannah.gnu.org/git/chktex.git
cd chktex/chktex
./autogen.sh --prefix=/usr/bin
./configure
make
install chktex /usr/bin
rm -rfv /chktex