script - Update Doxygen build to only run if cached binary not found

This commit is contained in:
thephez 2018-02-05 13:09:26 -05:00
parent 9b8e4593cb
commit 88c67fcc29

View file

@ -1,6 +1,16 @@
#!/bin/sh
set -ex
file="$TRAVIS_BUILD_DIR/doxygen-install/doxygen"
# Only build Doxygen if the binary isn't found
if [ -f "$file" ]
then
echo "Doxygen binary found. Skipping build."
else
echo "Doxygen binary not found. Building form source..."
# Build instructions from: https://www.stack.nl/~dimitri/doxygen/download.html
echo "Cloning doxygen repository..."
git clone https://github.com/doxygen/doxygen.git doxygen-src
@ -26,3 +36,4 @@ mkdir -p $TRAVIS_BUILD_DIR/doxygen-install
cp bin/doxygen $TRAVIS_BUILD_DIR/doxygen-install/
cd $TRAVIS_BUILD_DIR
fi