Bug#428448: tex-common: user mode in update-fontlang: Does not create TEXMFVAR
On Mon, Jun 11, 2007 at 16:39 +0200, Frank Küster wrote:
>
> # Does $TEXMFVAR expand to a single directory?
> texmfvar=$(kpsewhich --expand-path '$TEXMFVAR')
> if ! echo "$texmfvar" | grep -e ':'; then
> output_file="$texmfvar/$PATH_COMPONENT/$DEFAULT_OUTPUTFILE_BASENAME"
> else
> # We don't know what to do in this case, therefore: do nothing unless
> # the output file is specified with the correponding option.
> output_file=""
> fi
>
> However, if ~/.texmf-var (or whatever $TEXMVAR points to) does not yet
> exist, the result of this command is empty. Consequently, update-*
> tries to put its files into /web2c which fails (in user mode), and the
> error message is confusing.
One could use
texmfvar=$(kpsewhich --var-value=TEXMFVAR)
which works even when the directory in question does not yet exist. I
have not checked whether update-fontlang would create the direcory
$texmfvar/$PATH_COMPONENT.
cheerio
ralf
Reply to: