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 fi -- Glynn Clements <[EMAIL PROTECTED]> _______________________________________________ grass-dev mailing list grass-dev@grass.itc.it http://grass.itc.it/mailman/listinfo/grass-dev