"Mark R. Diggory" <[EMAIL PROTECTED]> wrote on 18/01/2004 
09:21:33 AM:

[snip]
> For non-maven users, Jason wrote a shell script which will upload your 
> artifact to the repository and generate an md5 shecksum for it. You need 

> and existing apache account and be a member of the apcvs group.
> 
> Usage:
> deploy-jar-apache your.jar your_project_id
> 
[snip]
> #!/bin/sh
> 
> # Deploy JAR to the repository
> # $1 : artifact to copy
> # $2 : project id
> 
> ARTIFACT=$1
> ID=$2
> ARTIFACT_TYPE=jars
> REPO=cvs.apache.org
> DIR=/www/www.apache.org/dist/java-repository/${ID}/${ARTIFACT_TYPE}
> 
> echo ${DIR}
> 
> # Make sure the target directory is present.
> ssh $REPO "mkdir -p ${DIR}"
> 
> # Copy the artifact to the repository.
> scp $ARTIFACT ${REPO}:${DIR}
> 
> # Make sure the perms are correct. Just in case
> ssh $REPO "chmod 664 ${DIR}/${ARTIFACT}; chgrp apcvs ${DIR}/${ARTIFACT}; 
cd 
> ${DIR}; md5 ${ARTIFACT} | sed 's/ .*$//' > ${ARTIFACT}.md5; chgrp apcvs 
> ${ARTIFACT}.md5"

I think the md5 needs a chmod on it too.
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to