The last commit from my workplace removed push-stick.sh, which was not intended.
authorRoland Haeder <roland@mxchange.org>
Wed, 20 Apr 2016 19:58:05 +0000 (21:58 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 20 Apr 2016 19:58:05 +0000 (21:58 +0200)
So let's better apply the same fix again ...

Signed-off-by: Roland Haeder <roland@mxchange.org>
.jprojects.sh
build-dist-all.sh
dist.sh

index e43ebcb..3b83d3d 100644 (file)
@@ -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 \
index 5ac2a3e..aeb747e 100755 (executable)
@@ -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 (executable)
--- 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}"