You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by pd...@apache.org on 2018/09/10 19:12:49 UTC

[incubator-openwhisk-release] branch master updated: Add document update based on the parameter UPDATE_DOC for release (#237)

This is an automated email from the ASF dual-hosted git repository.

pdesai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-release.git


The following commit(s) were added to refs/heads/master by this push:
     new 90fd82f  Add document update based on the parameter UPDATE_DOC for release (#237)
90fd82f is described below

commit 90fd82fb8d4ee038fe4b505849e39e91e5eaec64
Author: Vincent <sh...@us.ibm.com>
AuthorDate: Mon Sep 10 15:12:46 2018 -0400

    Add document update based on the parameter UPDATE_DOC for release (#237)
---
 tools/move_stage_to_release.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/move_stage_to_release.sh b/tools/move_stage_to_release.sh
index abc2d3e..2e5278d 100755
--- a/tools/move_stage_to_release.sh
+++ b/tools/move_stage_to_release.sh
@@ -47,8 +47,10 @@ do
     cp ${REMOTE_PATH}/${repo_name}-${version}-sources.tar.gz* ${REMOTE_PATH_RELEASE}/
 done
 
-# Copy the documents into the release folder
-cp -R ${REMOTE_PATH}/doc ${REMOTE_PATH_RELEASE}/
+if [ "$UPDATE_DOC" == "true" ] ; then
+    # Copy the documents into the release folder
+    cp -R ${REMOTE_PATH}/doc ${REMOTE_PATH_RELEASE}/
+fi
 
 cd $REMOTE_PATH_RELEASE
 svn add --force * $CREDENTIALS