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