[GRASS-dev] Re: [GRASS GIS] #587: svn versions should better reflect svn rev

GRASS GIS trac at osgeo.org
Tue Jan 12 00:43:39 EST 2010


#587: svn versions should better reflect svn rev
--------------------------+-------------------------------------------------
  Reporter:  hamish       |       Owner:  martinl  
      Type:  enhancement  |      Status:  reopened 
  Priority:  major        |   Milestone:  6.4.0    
 Component:  default      |     Version:  6.4.0 RCs
Resolution:               |    Keywords:  g.version
  Platform:  All          |         Cpu:  All      
--------------------------+-------------------------------------------------
Comment (by neteler):

 What is the state in GRASS 6.4? I tried right now and get:
 {{{
 GRASS 6.4.0svn (latlong_wgs84):~ > g.version -r
 GRASS 6.4.0svn (2009)
 }}}

 because of
 {{{
 [neteler at north include]$ grep GIS_H_VERSION *
 gis.h:#define GIS_H_VERSION "$Revision: 37101 $"
 gis.h:#define G_gisinit(pgm) G__gisinit(GIS_H_VERSION, (pgm))
 gis.h:#define G_no_gisinit() G__no_gisinit(GIS_H_VERSION)
 }}}

 but indeed we are at
 {{{
 [neteler at north include]$ svn up
 At revision 40373.
 }}}

 The number comes from the check-in of the file itself:
 {{{
 http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/include
 Name     Size           Rev      Age    Last Change
 ...
 gis.h   19.0 kB   37101   8 months    hamish:  backport GIS_H_DATE
 }}}

 The same applies to GRASS 7:

 {{{
 GRASS 7.0.svn (latlong_wgs84):~/grass64/include > g.version -r
 GRASS 7.0.svn10129:40343M (2010)
 Revision: 39888
 Date: 2009-12-04 08:21:40 +0100 (Fri, 04 Dec 2009)
 }}}

 {{{
 http://trac.osgeo.org/grass/browser/grass/trunk/include

 Name     Size           Rev      Age    Last Change
 ...
 gis.h   12.4 kB   39888   1 month    martinl:  synchronize vector modules
 (G_OPT_V_FIELD_ALL)
 }}}

 while
 {{{
 svn info | grep Revision
 Revision: 40373
 }}}

 Perhaps we have to determine the rev version on compile time?

 Markus

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/587#comment:40>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list