[GRASS-dev] wingrass: etc/fontcap contains fonts from dist. directory not installed directory

Glynn Clements glynn at gclements.plus.com
Fri Oct 26 17:47:28 EDT 2007

Moritz Lennert wrote:

> >> So, we need a specific sed command for windows, but do we have a variable
> >> for GISBASE in windows path syntax ? If not how to create it ?
> >>
> >>> Or, you can always regenerate the fontcap file after installation.
> >> That's what I'm doing manually now for the binaries, but it would be great
> >> to have this to happen automatically. Is this possible in the Makefile ?
> > 
> > g.dirseps will convert the separators, but not the /c/ -> c:/ for the
> > drive letter.
> > 
> > Does $(RUN_GISBASE) have the correct syntax?
> It has c:/ (forward-slash) style syntax. So, windows usable, but not for 
> the above sed command.

We could fix it with g.dirseps, but that's a bit ugly (it requires
setting GISBASE/GISRC); it's easier to use sed, e.g.:

ifneq ($(strip $(MINGW)),)
	-WINGISBASE=`echo $(RUN_GISBASE) | sed 's#/#\\#g'` ; \
	sed 's#'$$WINGISBASE'#'${INST_DIR}'#g' ${GISBASE}/etc/fontcap > ${INST_DIR}/etc/fontcap

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list