Skip to content

Commit bebb213

Browse files
committed
prepare-doc: Automatize updating latest folder
1 parent d3fcad6 commit bebb213

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/prepare-doc.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -e
66
PV_SRC=$1
77
PV_BUILD=$2
88
WORK_DIR=$3
9+
UPDATE_LATEST="false"
910

1011
if [ -z "$PV_SRC" ] || [ -z "$PV_BUILD" ] || [ -z "$WORK_DIR" ]
1112
then
@@ -21,6 +22,7 @@ fi
2122
if [ -n "$4" ]
2223
then
2324
VERSION="$4"
25+
UPDATE_LATEST="true"
2426
else
2527
VERSION=`git -C $PV_SRC describe`
2628
fi
@@ -85,6 +87,11 @@ EOF
8587

8688
if [ "$PARAVIEW_DOC_UPLOAD" = "true" ]; then
8789
cd "${WORK_DIR}/paraview-docs/"
90+
91+
if [ "$UPDATE_LATEST" = "true" ]; then
92+
cp -r "$VERSION/*" latest/
93+
fi
94+
8895
git add "$VERSION"
8996
# we simply amend the last commit and force-push
9097
git commit -a -m "Update documentation for version $VERSION"

0 commit comments

Comments
 (0)