Skip to content

Commit f341a1a

Browse files
John Nonweilerpeterschrammel
authored andcommitted
Add script to build doxygen
Move the section in .travis.yml responsible for getting the latest version of doxygen to a separate script, in order to make it easier for Ubuntu users to install it locally.
1 parent 386ea88 commit f341a1a

File tree

2 files changed

+15
-4
lines changed

2 files changed

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

0 commit comments

Comments
 (0)