Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 66905 invoked from network); 3 Jul 2005 04:56:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2005 04:56:23 -0000 Received: (qmail 94399 invoked by uid 500); 3 Jul 2005 04:56:22 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 94369 invoked by uid 500); 3 Jul 2005 04:56:21 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 94355 invoked by uid 99); 3 Jul 2005 04:56:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jul 2005 21:56:21 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 02 Jul 2005 21:56:23 -0700 Received: (qmail 66884 invoked by uid 65534); 3 Jul 2005 04:56:18 -0000 Message-ID: <20050703045618.66882.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r208885 - /geronimo/scripts/publish_build.sh Date: Sun, 03 Jul 2005 04:56:18 -0000 To: scm@geronimo.apache.org From: dblevins@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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