Skip to content

Commit 812aa8f

Browse files
John Nonweilerpeterschrammel
authored andcommitted
Refactor build_doxygen.sh to use set -euo pipefail
This refactoring should make it easier to read the script, and less likely that anyone accidentally breaks the script in future.
1 parent f341a1a commit 812aa8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/build_doxygen.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
DOXYGEN_VERSION=$1
46

57
if [ $# -ne 1 ]
@@ -8,7 +10,7 @@ then
810
exit 1
911
fi
1012

11-
mkdir -p doxygen/build \
12-
&& wget http://ftp.stack.nl/pub/users/dimitri/doxygen-${DOXYGEN_VERSION}.src.tar.gz -O- | tar -xz --strip-components=1 --directory doxygen \
13-
&& ( cd doxygen/build && cmake .. ) \
14-
&& make -j4 -C doxygen/build
13+
mkdir -p doxygen/build
14+
wget http://ftp.stack.nl/pub/users/dimitri/doxygen-${DOXYGEN_VERSION}.src.tar.gz -O- | tar -xz --strip-components=1 --directory doxygen
15+
( cd doxygen/build && cmake .. )
16+
make -j4 -C doxygen/build

0 commit comments

Comments
 (0)