[GRASS-dev] svn rev into g.version

Hi,

would it be possible to add svn revision to g.version, much like we hard
code the rev into libgis now?

I find version: "6.4.0svn (2009)" rather vague.

thanks,
Hamish

Hamish wrote:

would it be possible to add svn revision to g.version, much like we hard
code the rev into libgis now?

The SVN revision of which file? The version in lib/gis is the revision
of gis.h; if you want that, it's available in GIS_H_VERSION, in the
format "$Revision: 36878 $".

If you want the last changed revision for the project as a whole, you
can get it from the output of "svn info ." in the top-level directory,
but this requires that the source tree is an SVN checkout rather than
e.g. a snapshot tarball.

--
Glynn Clements <glynn@gclements.plus.com>