<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 9:51 AM, Rainer M Krug <span dir="ltr"><<a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br>
<br>
I would, for implementation in spgrass7 in R, to be able to get the version<br>
number of GRASS GIS before starting GRASS. </blockquote><div><br></div><div>I know about the --version parameter of grass command.<br></div><div><br>{{{<br>$ grass64 --version<br><br>GRASS GIS 6.4.4<br><br>Geographic Resources Analysis Support System (GRASS) is Copyright,<br>1999-2014 by the GRASS Development Team, and licensed under terms of the<br>GNU General Public License (GPL) version >=2.<br> <br>This GRASS 6.4.4 release is coordinated and produced by the...<br>}}}<br><br>Unfortunately for GRASS GIS 7 it is giving more the license and about then the version:<br><br>{{{<br>$ grass71 --version<br><br>Geographic Resources Analysis Support System (GRASS) is Copyright,<br>1999-2014 by the GRASS Development Team, and licensed under terms of the<br>GNU General Public License (GPL) version >=2.<br> <br>This GRASS 7.1.svn release is coordinated and produced by<br>}}}<br> <br></div><div>Although, I'm running 71 from source code, so it might be different.<br><br></div><div>To get general idea, here are examples what other projects have in --version:<br></div><div><br>{{{<br>gcc --version<br>gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2<br>Copyright (C) 2013 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.  There is NO<br>...<br>}}}<br><br>{{{<br>pandoc --version<br>pandoc 1.12.2.1<br>Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1.<br>Syntax highlighting is supported for the following languages:<br></div><div>...<br>}}}<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I know that in the file<br>
<br>
,----<br>
| GRASS_BASE_DIRECTORY/etc/VERSIONNUMBER<br>
`----<br>
<br>
the version number is stored, but I have two questions:<br>
<br>
1) is this the same between systems (I saw it in Mac Linux and Windows)?<br>
2) I assume the location of this file is very un-likely to change?<br>
3) can the internal structure of the GDRASS_BASE_DIRECTORY be configured<br>
during the build process (particularly the bin/ and the location of<br>
VERSIONNUMBER), and if yes, how can I obtain the location of these folders?<br>
<br>
So: would there be any downside in just reading this file to determine<br>
the version of GRASS GIS, as the grass startup script seems to be<br>
reading from that file as well?<br>
<br>
Thanks,<br>
<br>
Rainer<br>
<span class=""><font color="#888888"><br>
--<br>
Rainer M. Krug<br>
email: Rainer<at>krugs<dot>de<br>
PGP: 0x0F52F982<br>
</font></span><br>_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br></blockquote></div><br></div></div>