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

GRASS GIS trac at osgeo.org
Sun May 10 11:31:41 EDT 2009


#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 martinl):

 Replying to [comment:14 hamish]:

 {{{
 > svn log --limit 1 --quiet --xml | grep 'revision=' | cut -f2 -d'"'
 > 37100
 >
 > svn log --limit 1 --quiet --xml | grep '<date>' | \
 >   sed -e 's/T.*//' -e 's/.*>//'
 > 2009-05-10
 >
 > svn log --limit 1 --quiet | grep '(' | \
 >   sed -e 's/.*(//' -e 's/)$//' | cut -f3,4 -d' '
 > May 2009
 }}}

 why don't use

 {{{
 svn info
 }}}

 ?

 Martin

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


More information about the grass-dev mailing list