mirror of https://github.com/rwf2/Rocket.git
Allow docs to be built without cleaning with '-d'.
This commit is contained in:
parent
f857f81d9c
commit
f5219174d0
|
@ -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..."
|
||||||
|
|
Loading…
Reference in New Issue