Skip to content

Commit b161ac6

Browse files
committed
Script to build docs
1 parent 5f0dc38 commit b161ac6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

bin/jvmdocs.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ function copy_docs() {
2424
local VERSION=$2
2525
local DEST=$3
2626

27-
local PATH="${DEST}/apidocs/${PROJECT}/${VERSION}"
28-
echo "Making ${PATH} if necessary..."
29-
mkdir -p $PATH
27+
local TARGET="${DEST}/apidocs/${PROJECT}/${VERSION}"
28+
echo "Deleting ${TARGET} if it exists..."
29+
rm -rf ${TARGET}
3030

31-
echo "Copying docs to ${PATH}..."
32-
cp -r target/site/*docs/* $PATH/
31+
echo "Making ${TARGET} if necessary..."
32+
mkdir -p $TARGET
33+
34+
echo "Copying docs to ${TARGET}..."
35+
cp -r target/site/*docs/* $TARGET/
3336
}
3437

3538
build_docs $1 $2

0 commit comments

Comments
 (0)