[GRASS-dev] Can we release 6.2.3?
Markus Neteler
neteler at fbk.eu
Tue Nov 20 07:49:30 EST 2007
On Tue, Nov 20, 2007 at 01:42:46PM +0100, Ivan Shmakov wrote:
> >>>>> Markus Neteler <neteler at fbk.eu> writes:
>
> [...]
>
> >>> 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
Markus
> > VERSION=${MAJOR}.${MINOR}.${RELEASE}
> > echo $VERSION
> > #create ChangeLog on release branch:
> > sh tools/cvs2cl.pl --follow "$CVSBRANCH"
> > mv ChangeLog ChangeLog_$VERSION
More information about the grass-dev
mailing list