[GRASS-dev] Can we release 6.2.3?

Glynn Clements glynn at gclements.plus.com
Tue Nov 20 15:15:29 EST 2007


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.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list