[GRASS-dev] svn rev into g.version

Glynn Clements glynn at gclements.plus.com
Tue May 5 07:29:18 EDT 2009


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 at gclements.plus.com>


More information about the grass-dev mailing list