From f5219174d094d61710be537a3e5d67495045c0c9 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 10 Oct 2018 04:20:50 -0700 Subject: [PATCH] Allow docs to be built without cleaning with '-d'. --- scripts/mk-docs.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/mk-docs.sh b/scripts/mk-docs.sh index 1fb7ce49..2c70d115 100755 --- a/scripts/mk-docs.sh +++ b/scripts/mk-docs.sh @@ -9,10 +9,12 @@ set -e SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${SCRIPT_DIR}/config.sh" -# We need to clean-up beforehand so we don't get all of the dependencies. -echo ":::: Cleaning up before documenting..." -cargo clean -cargo update +if [ "${1}" != "-d" ]; then + # We need to clean-up beforehand so we don't get all of the dependencies. + echo ":::: Cleaning up before documenting..." + cargo clean + cargo update +fi # Generate the rustdocs for all of the crates. echo ":::: Generating the docs..."