mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
script - Update Doxygen build to only run if cached binary not found
This commit is contained in:
parent
9b8e4593cb
commit
88c67fcc29
1 changed files with 29 additions and 18 deletions
|
@ -1,6 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -ex
|
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
|
# Build instructions from: https://www.stack.nl/~dimitri/doxygen/download.html
|
||||||
echo "Cloning doxygen repository..."
|
echo "Cloning doxygen repository..."
|
||||||
git clone https://github.com/doxygen/doxygen.git doxygen-src
|
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/
|
cp bin/doxygen $TRAVIS_BUILD_DIR/doxygen-install/
|
||||||
|
|
||||||
cd $TRAVIS_BUILD_DIR
|
cd $TRAVIS_BUILD_DIR
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue