[tex-live] fmtutil-sys, updmap-sys scripts

Frank Küster frank at kuesterei.ch
Fri Oct 14 15:07:26 CEST 2005


Hallo Ingrid ;-)

Frank Küster <frank at kuesterei.ch> wrote:

> Frank Küster <frank at kuesterei.ch> wrote:
>
>> Why not simply unset TEXMFVAR, TEXMFCONFIG and TEXMFHOME in the -sys
>> variants? 
>
> I fear this might not be possible: 
>
> $ TEXMFCONFIG='' kpsewhich --format='web2c files' updmap.cfg
> /home/frank/.texmf-config/web2c/updmap.cfg

TEXMF='{!!$TEXMFLOCAL,!!$TEXMFSYSVAR,!!$TEXMFMAIN}' \
  kpsewhich --format='web2c files' updmap.cfg

works, however.  But this is not easy to achieve, since I don't see any
means to extract the raw value of TEXMF with kpse-tools (--var-value
gives the directory names, not the variables).  

I see two possibilities:

- take the value from texmf.cnf via standard unix tools:

  TEXMFCNF=`kpsewhich texmf.cnf`
  TEXMF=`grep '^[[:space:]]*TEXMF[[:space:]]*=[[:space:]]*' $TEXMFCNF \
    | sed -e 's/[[:space:]]*TEXMF[[:space:]]*=[[:space:]]*//;s/[!]*$TEXMFCONFIG//;s/[!]*$TEXMFVAR//;s/[!]*$TEXMFHOME//;s/,,,//;s/,,//'`

- or simply define that the -sys variants are less configurable and
  hardcode {!!$TEXMFLOCAL,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFDIST}

Regards, Frank

-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer



More information about the tex-live mailing list