From: "George N. White III" <gnwiii@gmail.com>
To: "NTG ConTeXt" <ntg-context@ntg.nl>
Subject: kpse.rb bad guess for distribution (web2c vs miktex)
Date: Fri, 23 Nov 2007 14:37:13 -0400 [thread overview]
Message-ID: <22af238a0711231037y1868c7fds67a4106a83d67334@mail.gmail.com> (raw)
I use MiKTeX's package manager to install updates on linux TeXLive.
I put mpm in /opt/miktex/bin, which causes
kpse.rb to deduce that distribution=miktex (rather than web2c). Here
is a trivial patch that adds a test for mswin:
$ diff -C 3 kpse.rb.orig kpse.rb
*** kpse.rb.orig 2007-01-11 11:52:06.000000000 -0400
--- kpse.rb 2007-11-23 12:59:11.000000000 -0400
***************
*** 64,71 ****
# @@distribution = 'miktex' if ENV['PATH'] =~ /miktex[\\\/]bin/o
! if ENV['PATH'] =~ /(.*?)miktex[\\\/]bin/i then
! @@distribution = 'miktex' unless $1 =~
/(texmf\-mswin[\/\\]bin|bin[\/\\]win32)/i
end
@@re_true = /yes|on|true|1/i
--- 64,71 ----
# @@distribution = 'miktex' if ENV['PATH'] =~ /miktex[\\\/]bin/o
! if (Config::CONFIG['host_os'] =~ /mswin/) && (ENV['PATH'] =~
/(.*?)miktex[\\\/]bin/i) then
! @@distribution = 'miktex' unless $1 =~
/(texmf\-mswin[\/\\]bin|bin[\/\\]win32)/i
end
@@re_true = /yes|on|true|1/i
--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2007-11-23 18:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-23 18:37 George N. White III [this message]
2007-11-24 22:44 ` Hans Hagen
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=22af238a0711231037y1868c7fds67a4106a83d67334@mail.gmail.com \
--to=gnwiii@gmail.com \
--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).