We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3fcad6 commit bebb213Copy full SHA for bebb213
scripts/prepare-doc.sh
@@ -6,6 +6,7 @@ set -e
6
PV_SRC=$1
7
PV_BUILD=$2
8
WORK_DIR=$3
9
+UPDATE_LATEST="false"
10
11
if [ -z "$PV_SRC" ] || [ -z "$PV_BUILD" ] || [ -z "$WORK_DIR" ]
12
then
@@ -21,6 +22,7 @@ fi
21
22
if [ -n "$4" ]
23
24
VERSION="$4"
25
+ UPDATE_LATEST="true"
26
else
27
VERSION=`git -C $PV_SRC describe`
28
fi
@@ -85,6 +87,11 @@ EOF
85
87
86
88
if [ "$PARAVIEW_DOC_UPLOAD" = "true" ]; then
89
cd "${WORK_DIR}/paraview-docs/"
90
+
91
+ if [ "$UPDATE_LATEST" = "true" ]; then
92
+ cp -r "$VERSION/*" latest/
93
+ fi
94
95
git add "$VERSION"
96
# we simply amend the last commit and force-push
97
git commit -a -m "Update documentation for version $VERSION"
0 commit comments