[GRASS-dev] Re: [GRASS GIS] #587: svn versions should better
reflect svn rev
GRASS GIS
trac at osgeo.org
Tue Jan 12 20:44:32 EST 2010
#587: svn versions should better reflect svn rev
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: martinl
Type: enhancement | Status: reopened
Priority: major | Milestone: 6.5.0
Component: default | Version: svn-trunk
Resolution: | Keywords: g.version
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):
Replying to [comment:43 glynn]:
> Replying to [comment:42 hamish]:
>
> > the "a:bM" syntax indicates that your tree has local
> > modifications.
>
> The trailing "M" indicates modification; an unmodified tree would
> have "a:b". IMHO, the "a:" should be stripped; we're only
> interested in the last revision, not the first.
so,
{{{
GRASS_VERSION_SVN=
AC_PATH_PROG(SVN_VERSION, svnversion, no)
if test "$SVN_VERSION" != "no" ; then
- GRASS_VERSION_SVN=`$SVN_VERSION -c`
+ GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
fi
}}}
Hamish
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/587#comment:44>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list