You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by db...@apache.org on 2006/05/10 03:36:53 UTC

svn commit: r405591 - /geronimo/gbuild/scripts/publish_build.sh

Author: dblevins
Date: Tue May  9 18:36:52 2006
New Revision: 405591

URL: http://svn.apache.org/viewcvs?rev=405591&view=rev
Log:
Missed a couple details.  Works now!

Modified:
    geronimo/gbuild/scripts/publish_build.sh

Modified: geronimo/gbuild/scripts/publish_build.sh
URL: http://svn.apache.org/viewcvs/geronimo/gbuild/scripts/publish_build.sh?rev=405591&r1=405590&r2=405591&view=diff
==============================================================================
--- geronimo/gbuild/scripts/publish_build.sh (original)
+++ geronimo/gbuild/scripts/publish_build.sh Tue May  9 18:36:52 2006
@@ -35,6 +35,7 @@
 DIST=$PWD/dist
 
 #  Make the DIST directory if it isn't present
+rm -r $DIST
 test -d $DIST || mkdir $DIST
 
 #  The public repo url for geronimo
@@ -140,8 +141,7 @@
 	cp -r $DIST/${RELEASE_ID}* $VERSION_DIR || fail "Unable to upload the binaries to release dir $VERSION_DIR"
     else 
 	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"
+	(scp -r $DIST $SSH_URL:$VERSION_DIR) || fail "Unable to upload the binaries to release dir $VERSION_DIR"
     fi
 
     #  Now we should be responsible and delete old nightly builds