[GRASS-dev] wingrass: etc/fontcap contains fonts from dist.
directory not installed directory
Moritz Lennert
mlennert at club.worldonline.be
Thu Oct 25 14:19:05 EDT 2007
On Wed, October 24, 2007 21:39, Glynn Clements wrote:
>
> Moritz Lennert wrote:
>
>> The grass-6.3.cvs/etc/fontcap file in wingrass contains a series of
>> entries of the sorts:
>>
>> cyrilc|Cyrillic|0|c:\grasssrc\grass6\dist.i686-pc-mingw32\fonts\cyrilc.hmp|0|utf-8|
>>
>> This should be
>>
>> cyrilc|Cyrillic|0|c:\grass\grass-6.3.cvs\fonts\cyrilc.hmp|0|utf-8|
>>
>> IIUC, the line that deals with this in the Makefile is (277):
>>
>> -sed 's#'${GISBASE}'#'${INST_DIR}'#g' ${GISBASE}/etc/fontcap >
>> ${INST_DIR}/etc/fontcap
>>
>>
>> Do we need an equivalent line for wingrass with WINGISBASE ?
>
> WINGISBASE doesn't exist during compilation. AFAICT, it's only used
> within grass63.bat and init.bat.
Duh, obviously it has nothing to do with WINGISBASE. The problem is path
syntax:
content of dist.i686-pc-mingw32/etc/fontcap:
cyrilc|Cyrillic|0|c:\grasssrc\grass-6.3.0RC1\dist.i686-pc-mingw32\fonts\cyrilc.h
mp|0|utf-8|
sed command in the Makefile:
-sed 's#'${GISBASE}'#'${INST_DIR}'#g' ${GISBASE}/etc/fontcap >
${INST_DIR}/etc/fontcap
which during install translates to
sed
's#'/c/grasssrc/grass-6.3.0RC1/dist.i686-pc-mingw32'#'c:/grass63RC1/grass-6.3.0RC1'#g'
/c/grasssrc/grass-6.3.0RC1/dist.i686-pc-mingw32/etc/fontcap >
c:/grass63RC1/grass-6.3.0RC1/etc/fontcap
fontcap entries need to use windows syntax under windows for gis.m to see
the font.
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 ?
Moritz
More information about the grass-dev
mailing list