On Sam, 07 Okt 2006, Frank Küster wrote:
> $ kpsewhich -var-value TEXMFSYSBONFIG; echo $?
> 
> 1

Ok, I do it like this:
build_format_if_format_exists ()
{
    v=`kpsewhich -var-value TEXMFSYSVAR` || return 0
    c=`kpsewhich -var-value TEXMFSYSCONFIG` || return 0
    TEXMFVAR="$v"
    TEXMFCONFIG="$c"
    export TEXMFVAR TEXMFCONFIG
    if kpsewhich --format='web2c files' fmtutil.cnf > /dev/null 2>&1 ; then
        fmtcnffile=`kpsewhich --format='web2c files' fmtutil.cnf`
    else
        return 0
    fi
...

What do you think? (No, I don't want tex-common or something else to
depend on, some people only want to run makeinfo without any tex stuff)

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <[EMAIL PROTECTED]>                    Università di Siena
Debian Developer <[EMAIL PROTECTED]>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
The major difference between a thing that might go wrong
and a thing that cannot possibly go wrong is that when a
thing that cannot possibly go wrong goes wrong it usually
turns out to be impossible to get at or repair.
                 --- One of the laws of computers and programming revealed.
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to