Skip to content

Commit bdce85b

Browse files
authored
Merge pull request #3302 from johnnonweiler/build-doxygen-script
Add script to build doxygen
2 parents 0157652 + 812aa8f commit bdce85b

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ jobs:
6363
# Build doxygen if it is not in Travis cache
6464
if ! [ -x doxygen/build/bin/doxygen ]
6565
then
66-
mkdir -p doxygen/build \
67-
&& wget http://ftp.stack.nl/pub/users/dimitri/doxygen-${DOXYGEN_VERSION}.src.tar.gz -O- | tar -xz --strip-components=1 --directory doxygen \
68-
&& ( cd doxygen/build && cmake .. ) \
69-
&& make -j4 -C doxygen/build
66+
scripts/build_doxygen.sh ${DOXYGEN_VERSION}
7067
fi
7168
- export PATH="$PATH:${TRAVIS_BUILD_DIR}/doxygen/build/bin"
7269
script:

scripts/build_doxygen.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
DOXYGEN_VERSION=$1
6+
7+
if [ $# -ne 1 ]
8+
then
9+
echo "Usage: build_doxygen.sh doxygen-version-number"
10+
exit 1
11+
fi
12+
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)