[GRASS-dev] GRASS startup window patches

Glynn Clements glynn at gclements.plus.com
Sun Jan 7 05:38:41 EST 2007


Michael Barton wrote:

> IMHO, this could be considerably simplified and made more reliable
> cross-platform if PROJSHARE could be set as an environmental variable in
> init.sh (using the same methods of doing this as setting other variables at
> compile time in init.sh), be set as a GRASS environmental variable that
> could go into .grassrc6, or be put into a text file that could be read by
> the tcltk script.

Agreed. Hard-coding the path to the EPSG file is undesirable, and
doesn't appear to be necessary.

> AFAICT, nothing except the TclTk script epsg_option.tcl
> needs to know where the epsg data file is located and I don't think it's a
> good idea to have a shell script try to alter a TclTk script. It isn't
> working on my Mac and I doubt if it works for Windows. Unfortunately, I
> don't understand the make system enough to make such changes myself and not
> mess something else up.

If you adopt the approach of setting PROJSHARE as an environment
variable in etc/Init.sh and just using $env(PROJSHARE) in Tcl code,
you can just mimic the other etc/Init.sh substitutions in
lib/init/Makefile.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list