ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: updating context on Ubuntu 6.06
Date: Thu, 27 Jul 2006 10:04:41 +0200	[thread overview]
Message-ID: <44C87399.1050805@wxs.nl> (raw)
In-Reply-To: <E1G5pLm-0005HT-00@skye.ra.phy.cam.ac.uk>

Sanjoy Mahajan wrote:
>
>          def locatedlocaltree
> -            return `kpsewhich --expand-var $TEXMFLOCAL`.chomp rescue nil
> +            return `kpsewhich --expand-var '$TEXMFLOCAL'`.chomp rescue nil
>          end
>   
returns 'result' here

can you try:

        def locatedlocaltree
            tree = `kpsewhich --expand-path $TEXMFLOCAL`.chomp rescue nil
            unless tree && FileTest.directory?(tree) then
                tree = `kpsewhich --expand-path $TEXMF`.chomp rescue nil
            end
            return tree
        end

(uses expand-path instead)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  parent reply	other threads:[~2006-07-27  8:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-24 20:24 Sanjoy Mahajan
2006-07-26  8:36 ` Ralf Schmitt
2006-07-26  9:36   ` Taco Hoekwater
2006-07-26 10:36     ` Jano Kula
2006-07-26 11:20     ` Ralf Schmitt
2006-07-26 15:17     ` Sanjoy Mahajan
2006-07-26 16:13       ` Taco Hoekwater
2006-07-26 19:47         ` Sanjoy Mahajan
2006-07-26 20:34           ` Taco Hoekwater
2006-07-26 20:57           ` Hans Hagen
2006-07-26 21:01           ` Hans Hagen
2006-07-26 21:29             ` Switching Font Size in a Natural Table Neal Lester
2006-08-01 23:31               ` Mojca Miklavec
2006-07-26 22:10             ` updating context on Ubuntu 6.06 Sanjoy Mahajan
2006-07-27  8:05               ` Hans Hagen
2006-07-27  8:46                 ` Taco Hoekwater
2006-07-27  8:04           ` Hans Hagen [this message]
2006-07-27 12:37             ` Sanjoy Mahajan
2006-07-26 21:02         ` Hans Hagen
2006-07-26 14:43   ` Sanjoy Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44C87399.1050805@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).