geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r208885 - /geronimo/scripts/publish_build.sh
Date Sun, 03 Jul 2005 04:56:18 GMT
Author: dblevins
Date: Sat Jul  2 21:56:16 2005
New Revision: 208885

URL: http://svn.apache.org/viewcvs?rev=208885&view=rev
Log:
Can supply the ssh host.

Modified:
    geronimo/scripts/publish_build.sh

Modified: geronimo/scripts/publish_build.sh
URL: http://svn.apache.org/viewcvs/geronimo/scripts/publish_build.sh?rev=208885&r1=208884&r2=208885&view=diff
==============================================================================
--- geronimo/scripts/publish_build.sh (original)
+++ geronimo/scripts/publish_build.sh Sat Jul  2 21:56:16 2005
@@ -18,20 +18,9 @@
 # $Rev$ $Date$
 # --------------------------------------------------------------------
 
-PROJ=geronimo
-BIN_DIR=${2:-modules/assembly/target}
-DIST=${3:-$PWD/dist}
-
-#  Make the DIST directory if it isn't present
-test -d $DIST || mkdir $DIST
-
-#  The public repo url for geronimo
-SVN_URL="http://svn.apache.org/repos/asf/$PROJ"
-
 #  If we need to SSH up to the server where the builds are published
 #  These three varaibles will be used to find the host 
-REMOTE_USER=dblevins
-REMOTE_HOST=apache.org
+REMOTE_HOST=${1:-apache.org}
 
 #  This is where we should place our unstable, non-release builds
 #  We aren't labeling the releases by date, rather by svn revision, so
@@ -39,7 +28,18 @@
 #  It's fine as we really don't even need to run this script nightly and
 #  can instead opt to run it just when we think we think things are in a 
 #  relatively good state.
-RELEASE_DIR=/www/cvs.apache.org/dist/$PROJ/unstable
+RELEASE_DIR=${2:-/www/cvs.apache.org/dist/geronimo/unstable}
+
+PROJ=geronimo
+BIN_DIR=modules/assembly/target
+DIST=$PWD/dist
+
+#  Make the DIST directory if it isn't present
+test -d $DIST || mkdir $DIST
+
+#  The public repo url for geronimo
+SVN_URL="http://svn.apache.org/repos/asf/$PROJ"
+
 
 #  Get the current svn revision number for geronimo
 #  Example: 123456
@@ -135,7 +135,7 @@
 	mkdir $VERSION_DIR || fail "Unable to create the release dir $VERSION_DIR"
 	cp -r $DIST/${RELEASE_ID}* $VERSION_DIR || fail "Unable to upload the binaries to release
dir $VERSION_DIR"
     else 
-	SSH_URL=$REMOTE_USER@$REMOTE_HOST
+	SSH_URL=$REMOTE_HOST
 	(ssh $SSH_URL  mkdir $VERSION_DIR ) || fail "Unable to create the release dir $VERSION_DIR"
 	(scp $DIST/${RELEASE_ID}* $SSH_URL:$VERSION_DIR) || fail "Unable to upload the binaries
to release dir $VERSION_DIR"
     fi
@@ -149,7 +149,7 @@
     #  ssh part of the command in a variable SSH which will just not be set
     #  if we are running locally.
 
-    [ ! $RUNNING_LOCALLY ] && SSH="ssh $REMOTE_USER@$REMOTE_HOST"
+    [ ! $RUNNING_LOCALLY ] && SSH="ssh $REMOTE_HOST"
 
     #  The extra parenthesis in this statement make the result of the
     #  ls command into an array.  Many people aren't familiar with a 



Mime
View raw message