<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 21, 2019 at 5:34 PM Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jan 21, 2019 at 11:14 PM Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>> wrote:<br>
> On Mon, Jan 21, 2019 at 3:59 PM Markus Neteler <<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>> wrote:<br>
>> On Mon, Jan 21, 2019 at 9:34 PM Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>> wrote:<br>
...<br>
>> > OK, this raises the question if I should put the exact script I'm using at <a href="http://fatra.cnr.ncsu.edu" rel="noreferrer" target="_blank">fatra.cnr.ncsu.edu</a> to GRASS GIS code?<br>
>><br>
>> Ah, in order to also run it directly, right?<br>
>><br>
>> > I based the example in doc on that but considered the actual script as too specific (it needs to have the hardcoded paths anyway).<br>
>><br>
>> Perhaps it might be the best to store the hardcoded paths in a<br>
>> separate config file which is "source"d by the test script?<br>
><br>
><br>
> That's a good idea. That way I we could actually run it directly without storing the specific settings in the source code.<br>
<br>
Changed in r73993.<br>
Please try.<br></blockquote></div><div class="gmail_quote"><br></div><div class="gmail_quote">How do you suggest to set path the config file to `source`? I don't have it in the current directory. Script parameter?<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Also, what do you think about keeping all the grass77, grass76, ... in the source code? I'm using the following in my script. Would that be understandable in the example?</div><div class="gmail_quote"><br></div><div class="gmail_quote"># just get any file which is there (there is only one, but the name differs by version<br></div><div class="gmail_quote"> GRASSBIN="$GRASSSRC/bin.x86_64-pc-linux-gnu/grass*"<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Otherwise, trying to align the two scripts, it seems I need to parametrize every task the script is doing (I
want the compilation to keep more cores free, I don't need the download,
untar and rename, and I have different combination and names of
locations).<br></div><div><br></div></div></div>