ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Christopher Creutzig <christopher@creutzig.de>
Subject: texfont batch mode: looks for texfont.pl instead of $0
Date: Sun, 07 Sep 2003 23:23:34 +0200	[thread overview]
Message-ID: <3F5BA1D6.10005@creutzig.de> (raw)

Hans,

texfont type-tmf.dat --en=texnansi --fontroot /Users/ccr/Library/texmf/

fails with

Can't open perl script "/Users/ccr/bin/texfont.pl": No such file or
directory
             batch line : --en=texnansi --ve=public --co=antt --so=auto

etc.  Now, /Users/ccr/bin/texfont is a symbolic link to texfont.pl in
the installation, so this can't work.  The problem is here:

my $own_path = "$FindBin::Bin/" ;
$FindBin::RealScript =~ m/([^\.]*)(\.pl|\.bat|\.exe|)/io ;

Either use $FindBin::RealBin in the first line or use $FindBin::Script
in the second line.  Mixing the tweo breaks as soon as symbolic links
are involved that change the suffix.

regards,
	Christopher Creutzig

                 reply	other threads:[~2003-09-07 21:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3F5BA1D6.10005@creutzig.de \
    --to=christopher@creutzig.de \
    --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).