Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit f5219174d094d61710be537a3e5d67495045c0c9
parent f857f81d9c156cbb6f8b24be173dbda0cb0504a0
Author: Sergio Benitez <sb@sergio.bz>
Date:   Wed, 10 Oct 2018 04:20:50 -0700

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

Diffstat:
Mscripts/mk-docs.sh | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 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..."