[GRASS-dev] Can we release 6.2.3?
Markus Neteler
neteler at fbk.eu
Tue Nov 20 15:56:33 EST 2007
On Tue, Nov 20, 2007 at 09:15:29PM +0100, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > > >>> It would be very good to check since the 6.2.2 release.
> > >
> > > >> I don't know what the correct cvs command for that is.
> > >
> > > > It is (in the release branch):
> > >
> > > > CVSBRANCH=`cat CVS/Entries | grep AUTHORS | cut -d'/' -f6 | cut -b2-`
> > > > echo $CVSBRANCH
> > > > #version:
> > > > MAJOR=`cat include/VERSION | head -1 | tail -1`
> > > > MINOR=`cat include/VERSION | head -2 | tail -1`
> > > > RELEASE=`cat include/VERSION | head -3 | tail -1`
> > >
> > > May I suggest using `sed' here instead? Like:
> > >
> > > MAJOR=`sed -q -e 1p include/VERSION`
> > > MINOR=`sed -q -e 2p include/VERSION`
> > > RELEASE=`sed -q -e 3p include/VERSION`
> >
> > Works only with a fix for me (-q not portable?):
> >
> > MAJOR=`sed --q -e 1p include/VERSION`
> > MINOR=`sed --q -e 2p include/VERSION`
> > RELEASE=`sed --q -e 3p include/VERSION`
> > echo $MAJOR.$MINOR.$RELEASE
>
> The "-n" flag is portable.
Thanks for all these hints, but this discussion looks
a bit irrelevant to me. It was just my personal way
to extract the version numbers...
Better fix some bugs :)
Markus
More information about the grass-dev
mailing list