You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Raymond Feng <en...@gmail.com> on 2007/11/08 20:12:34 UTC

A script to automate the steps to create a SCA Java release was: Re: svn commit: r593259 - /incubator/tuscany/java/etc/release-sca.sh

Hi,

I wrote a shell script to automate the steps to create a SCA java release.

* Run "svn copy" to check out the release branch into a RC tag
* Replace the version id by removing SNAPSHOT (I'm using "sed" at this 
moment and it can be replaced by maven release plugin)
* Generate a "RAT" report
* Build the tagged source tree
* Deploy/sign the modules to a stage maven repo
* Sign the distros
* Copy the distros to people.apache.org (To be implemented using "scp" 
command)

Hope it helps for future RMs.

Thanks,
Raymond

----- Original Message ----- 
From: <rf...@apache.org>
To: <tu...@ws.apache.org>
Sent: Thursday, November 08, 2007 11:05 AM
Subject: svn commit: r593259 - /incubator/tuscany/java/etc/release-sca.sh


> Author: rfeng
> Date: Thu Nov  8 11:05:18 2007
> New Revision: 593259
>
> URL: http://svn.apache.org/viewvc?rev=593259&view=rev
> Log:
> Update the script
>
> Modified:
>    incubator/tuscany/java/etc/release-sca.sh
>
> Modified: incubator/tuscany/java/etc/release-sca.sh
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/etc/release-sca.sh?rev=593259&r1=593258&r2=593259&view=diff
> ==============================================================================
> --- incubator/tuscany/java/etc/release-sca.sh (original)
> +++ incubator/tuscany/java/etc/release-sca.sh Thu Nov  8 11:05:18 2007
> @@ -21,7 +21,7 @@
>
> # Staging maven repo
> REPO_ID=apache.incubator
> -REPO_URL=scp://people.apache.org/home/$USER/public_html/tuscany/maven
> +REPO_URL=scp://people.apache.org/home/$USER/public_html/tuscany/$TAG/maven
>
> # RAT jar
> RAT_JAR=c:\\Apache\\rat\\rat-0.5.1.jar
> @@ -53,19 +53,19 @@
>
> echo "Building samples ..."
> cd $DIR/$TAG/samples
> -mvn clean install -fn
> +mvn clean install
>
> echo "Building itests ..."
> cd $DIR/$TAG/itest
> -mvn clean install -fn
> +mvn clean install
>
> echo "Building distrubtion ..."
> cd $DIR/$TAG/distribution
> -mvn clean install -fn
> +mvn clean install
>
> echo "Signing distrubtion ..."
> for i in target/*.zip target/*.gz; do gpg --output 
> $i.asc --detach-sig --armor $i; done
> -for i in *.zip *.gz; do openssl md5 -hex $i | sed 's/MD5(\([^)]*\))= 
> \([0-9a-f]*\)/\2 *\1/' > $i.md5; done
> +for i in target/*.zip target/*.gz; do openssl md5 -hex $i | sed 
> 's/MD5(\([^)]*\))= \([0-9a-f]*\)/\2 *\1/' > $i.md5; done
>
> echo "Deploying tuscany-sca-all ..."
> cd $DIR/$TAG/distribution/bundle/target
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: A script to automate the steps to create a SCA Java release was: Re: svn commit: r593259 - /incubator/tuscany/java/etc/release-sca.sh

Posted by Venkata Krishnan <fo...@gmail.com>.
Thanks a ton, Raymond.  This is surely going to be helpful.

- Venkat

On Nov 9, 2007 12:42 AM, Raymond Feng <en...@gmail.com> wrote:

> Hi,
>
> I wrote a shell script to automate the steps to create a SCA java release.
>
> * Run "svn copy" to check out the release branch into a RC tag
> * Replace the version id by removing SNAPSHOT (I'm using "sed" at this
> moment and it can be replaced by maven release plugin)
> * Generate a "RAT" report
> * Build the tagged source tree
> * Deploy/sign the modules to a stage maven repo
> * Sign the distros
> * Copy the distros to people.apache.org (To be implemented using "scp"
> command)
>
> Hope it helps for future RMs.
>
> Thanks,
> Raymond
>
> ----- Original Message -----
> From: <rf...@apache.org>
> To: <tu...@ws.apache.org>
> Sent: Thursday, November 08, 2007 11:05 AM
> Subject: svn commit: r593259 - /incubator/tuscany/java/etc/release-sca.sh
>
>
> > Author: rfeng
> > Date: Thu Nov  8 11:05:18 2007
> > New Revision: 593259
> >
> > URL: http://svn.apache.org/viewvc?rev=593259&view=rev
> > Log:
> > Update the script
> >
> > Modified:
> >    incubator/tuscany/java/etc/release-sca.sh
> >
> > Modified: incubator/tuscany/java/etc/release-sca.sh
> > URL:
> >
> http://svn.apache.org/viewvc/incubator/tuscany/java/etc/release-sca.sh?rev=593259&r1=593258&r2=593259&view=diff
> >
> ==============================================================================
> > --- incubator/tuscany/java/etc/release-sca.sh (original)
> > +++ incubator/tuscany/java/etc/release-sca.sh Thu Nov  8 11:05:18 2007
> > @@ -21,7 +21,7 @@
> >
> > # Staging maven repo
> > REPO_ID=apache.incubator
> > -REPO_URL=scp://people.apache.org/home/$USER/public_html/tuscany/maven
> >
> +REPO_URL=scp://people.apache.org/home/$USER/public_html/tuscany/$TAG/maven
> >
> > # RAT jar
> > RAT_JAR=c:\\Apache\\rat\\rat-0.5.1.jar
> > @@ -53,19 +53,19 @@
> >
> > echo "Building samples ..."
> > cd $DIR/$TAG/samples
> > -mvn clean install -fn
> > +mvn clean install
> >
> > echo "Building itests ..."
> > cd $DIR/$TAG/itest
> > -mvn clean install -fn
> > +mvn clean install
> >
> > echo "Building distrubtion ..."
> > cd $DIR/$TAG/distribution
> > -mvn clean install -fn
> > +mvn clean install
> >
> > echo "Signing distrubtion ..."
> > for i in target/*.zip target/*.gz; do gpg --output
> > $i.asc --detach-sig --armor $i; done
> > -for i in *.zip *.gz; do openssl md5 -hex $i | sed 's/MD5(\([^)]*\))=
> > \([0-9a-f]*\)/\2 *\1/' > $i.md5; done
> > +for i in target/*.zip target/*.gz; do openssl md5 -hex $i | sed
> > 's/MD5(\([^)]*\))= \([0-9a-f]*\)/\2 *\1/' > $i.md5; done
> >
> > echo "Deploying tuscany-sca-all ..."
> > cd $DIR/$TAG/distribution/bundle/target
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-commits-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>