Allow docs to be built without cleaning with '-d'.

This commit is contained in:
Sergio Benitez 2018-10-10 04:20:50 -07:00
parent f857f81d9c
commit f5219174d0
1 changed files with 6 additions and 4 deletions

View File

@ -9,10 +9,12 @@ set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${SCRIPT_DIR}/config.sh" source "${SCRIPT_DIR}/config.sh"
# We need to clean-up beforehand so we don't get all of the dependencies. if [ "${1}" != "-d" ]; then
echo ":::: Cleaning up before documenting..." # We need to clean-up beforehand so we don't get all of the dependencies.
cargo clean echo ":::: Cleaning up before documenting..."
cargo update cargo clean
cargo update
fi
# Generate the rustdocs for all of the crates. # Generate the rustdocs for all of the crates.
echo ":::: Generating the docs..." echo ":::: Generating the docs..."