Re: stupid script of the day: maven to "DIST" directory for WO jars
Re: stupid script of the day: maven to "DIST" directory for WO jars
- Subject: Re: stupid script of the day: maven to "DIST" directory for WO jars
- From: "Joe Little" <email@hidden>
- Date: Wed, 11 Jun 2008 21:31:51 -0700
Ah. I just called the script (made executable) "wodist" -- but whatever.
On Wed, Jun 11, 2008 at 9:29 PM, Joe Little <email@hidden> wrote:
> For those utilizing the maven repo for WO snapshots, this will at
> least get the important jars into a tree. Not frameworks yet, but its
> just something I cooked up in a minute. It references the "personal"
> maven repo as suggested online, but it could be any SRCDIR or revision
> you want.
>
>
> #!/bin/bash
>
> VER=5.4.2
> SRCDIR=~/.m2/repository/com/webobjects
> DSTDIR=~/WODIST-$VER
>
> cd $SRCDIR
> FILES=`find . -name "*.jar" | grep $VER | grep -v '\-tests'`
>
> rm -rf $DSTDIR
> mkdir $DSTDIR
> for i in $FILES;
> do
> TGTNAME=`echo $i | awk -F'/' '{print $4}' | awk -F'-' '{print $1}'`
> cp $i $DSTDIR/$TGTNAME.jar
> done
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden