ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* kpse.rb bad guess for distribution (web2c vs miktex)
@ 2007-11-23 18:37 George N. White III
  2007-11-24 22:44 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: George N. White III @ 2007-11-23 18:37 UTC (permalink / raw)
  To: NTG ConTeXt

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: kpse.rb bad guess for distribution (web2c vs miktex)
  2007-11-23 18:37 kpse.rb bad guess for distribution (web2c vs miktex) George N. White III
@ 2007-11-24 22:44 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2007-11-24 22:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

George N. White III wrote:
> 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:

ok

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-24 22:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-23 18:37 kpse.rb bad guess for distribution (web2c vs miktex) George N. White III
2007-11-24 22:44 ` Hans Hagen

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).