[GRASS-dev] Re: GRASS startup window patches

Hello Michael

On Sun, 7 Jan 2007, Michael Barton wrote:

Paul, do you know how to get the information in PROJSHARE, as set in
configure, into an environmental variable instead of the current klunky way
it's used? I'd like to get this fixed in epsg_option--a last annoying issue.

Sorry, missed this e-mail earlier. I've committed changes to CVS now that will set an environment variable called GRASS_PROJSHARE which should contain the correct path. It is set in Init.sh, and if the user sets GRASS_PROJSHARE before starting GRASS, then they can override it, i.e. over-ride the value that was set in the configure script.

It can be referenced in epsg_option.tcl as $env(GRASS_PROJSHARE), but I had some troubles with the Tcl syntax so I didn't commit that part of the change. Essentially we should re-name epsg_option.tcl.in back to epsg_option.tcl, make the change there, and change the rule for epsg_option.tcl in the Makefile to look very similar to file_option.tcl. But even if you just make the change to epsg_option.tcl.in for now I can probably fix it up later. Assuming my ADSL connection stays up.

Paul

Paul,

On 1/8/07 8:26 AM, "Paul Kelly" <paul-grass@stjohnspoint.co.uk> wrote:

It can be referenced in epsg_option.tcl as $env(GRASS_PROJSHARE), but I
had some troubles with the Tcl syntax so I didn't commit that part of the
change. Essentially we should re-name epsg_option.tcl.in back to
epsg_option.tcl, make the change there, and change the rule for
epsg_option.tcl in the Makefile to look very similar to file_option.tcl.
But even if you just make the change to epsg_option.tcl.in for now I can
probably fix it up later. Assuming my ADSL connection stays up.

I did all this. I'm a little nervous messing with make files, but this
seemed pretty straightforward. I just used the reference to file_option.tcl
as a model. I also removed projshare.sed and make_location_epsg.ini as they
are no longer needed, along with their references in the makefile. I tested
it all in a new build on my Mac and it went fine.

The new environmental variable works very well. Thanks much.

Michael

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton