[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: texlive2007 and otfinst.py



Frank Küster <frank@debian.org> wrote:

> Frank Küster <frank@debian.org> wrote:
>
>>> The idea was that if we have a updmap.d/language.d directory, it's safe
>>> to use, otherwise the setup is not appropriate and the user needs to do
>>> it before using update-fontlang in user-specific mode.
>>
>> But that would mean that a default setup is not appropriate.  If you
>> install texlive and don't change the configuration, there's only one
>> directory in texmfconfig, but it doesn't exist.
>>
>> So I guess we should test whether there's more than one, and if yes (and
>> none does exist) give a nice error message.
>
> I suggest

No, that was a thinko.  When patching updmap and fmtutil, we need to
create these directories for disabling or enabling formats.  But in
update-fontlang, that doesn't make sense.  Soe for update-fontlang, I
suggest

    conf_dir=""
    texmfconfig=$(kpsewhich --expand-path '$TEXMFCONFIG')
    OLDIFS="$IFS"
    IFS=:
    for d in "$texmfconfig"; do
        if [ -d "$d/$CNFDIR" ]; then
            conf_dir="$d/$CNFDIR"
            break
        fi
    done
    IFS="$OLDIFS"
    # still empty?  Pick one
    if [ -z "$conf_dir" ]; then
      echo "No fmt.d directory found in"
      echo "$texmfconfig"
      echo "I don't know what you want me to do, exiting."
      exit 1
    fi

  Regards, Frank

-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: