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 _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
