From e3ab6b9d3a80d7ae840b0745f5c2a96b190d1bdf Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 20 Apr 2016 21:58:05 +0200 Subject: [PATCH] The last commit from my workplace removed push-stick.sh, which was not intended. So let's better apply the same fix again ... Signed-off-by: Roland Haeder --- .jprojects.sh | 1 + build-dist-all.sh | 7 ++++++- dist.sh | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.jprojects.sh b/.jprojects.sh index e43ebcb..3b83d3d 100644 --- a/.jprojects.sh +++ b/.jprojects.sh @@ -7,6 +7,7 @@ LIST="jcore jcoreee \ jphone-core jphone-lib \ jcontacts-core jcontacts-business-core jcontacts-lib \ juser-core juser-lib \ + jaddressbook-core \ jletter-core jletter-lib jletter-ejb \ jaddressbook-core \ jmailer-ee \ diff --git a/build-dist-all.sh b/build-dist-all.sh index 5ac2a3e..aeb747e 100755 --- a/build-dist-all.sh +++ b/build-dist-all.sh @@ -53,7 +53,12 @@ for project in ${LIST}; do echo "$0: Error: Project '${project}' has non-executable dist.sh!" exit 1 else - ./dist.sh + if [ "$1" = "r" ] + then + ./dist.sh r + else + ./dist.sh + fi fi done diff --git a/dist.sh b/dist.sh index 8d5e1cc..58d917f 100755 --- a/dist.sh +++ b/dist.sh @@ -69,7 +69,7 @@ do done -if [ -n "${GLASSFISH_SSH_PATH}" -a -n "${GLASSFISH_SSH_SERVER}" ] +if [ "$1" != "r" -a -n "${GLASSFISH_SSH_PATH}" -a -n "${GLASSFISH_SSH_SERVER}" ] then echo "$0: Copying to remote '${GLASSFISH_SSH_SERVER}' ..." scp "${DIST}" "${GLASSFISH_SSH_SERVER}:${GLASSFISH_SSH_PATH}" -- 2.39.5