<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NO-BOK" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">What about grass70 --config?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Stefan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> grass-dev-bounces@lists.osgeo.org [mailto:grass-dev-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Vaclav Petras<br>
<b>Sent:</b> 29. januar 2015 23:10<br>
<b>To:</b> Rainer M Krug<br>
<b>Cc:</b> grass-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [GRASS-dev] Getting version number *before* starting<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Thu, Jan 29, 2015 at 9:51 AM, Rainer M Krug <<a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">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. <o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I know about the --version parameter of grass command.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><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>
 <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Although, I'm running 71 from source code, so it might be different.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">To get general idea, here are examples what other projects have in --version:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><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:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">...<br>
}}}<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">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 style="color:#888888"><br>
--<br>
Rainer M. Krug<br>
email: Rainer<at>krugs<dot>de<br>
PGP: 0x0F52F982<br>
</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><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>