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 <[EMAIL PROTECTED]>
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
___________________________________________________________________________________

Reply via email to