diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2013-01-10 02:45:57 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2013-01-10 02:45:57 +0000 |
commit | c641bbba3a500d932686691a80fc95fd45682bae (patch) | |
tree | d384207458839f58cd0a2520f5cc134723048f47 /Master/texmf-dist/scripts/context/ruby/base | |
parent | db19b2fa504cfe11cb7c51f0c5d66e792ccde198 (diff) |
replace Config::CONFIG -> RbConfig::CONFIG in ruby scripts in ConTeXt (for ruby 1.9; requires ruby >=1.8.5)
git-svn-id: svn://tug.org/texlive/trunk@28782 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/context/ruby/base')
4 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/context/ruby/base/kpse.rb b/Master/texmf-dist/scripts/context/ruby/base/kpse.rb index 313ebbe6286..ec0b8810ba5 100644 --- a/Master/texmf-dist/scripts/context/ruby/base/kpse.rb +++ b/Master/texmf-dist/scripts/context/ruby/base/kpse.rb @@ -61,7 +61,7 @@ module Kpse @@tracing = false @@distribution = 'web2c' @@crossover = true - @@mswindows = Config::CONFIG['host_os'] =~ /mswin/ + @@mswindows = RbConfig::CONFIG['host_os'] =~ /mswin/ # @@distribution = 'miktex' if ENV['PATH'] =~ /miktex[\\\/]bin/o diff --git a/Master/texmf-dist/scripts/context/ruby/base/switch.rb b/Master/texmf-dist/scripts/context/ruby/base/switch.rb index 19eced42495..79613dcd0f9 100644 --- a/Master/texmf-dist/scripts/context/ruby/base/switch.rb +++ b/Master/texmf-dist/scripts/context/ruby/base/switch.rb @@ -18,7 +18,7 @@ require "rbconfig" -$mswindows = Config::CONFIG['host_os'] =~ /mswin/ +$mswindows = RbConfig::CONFIG['host_os'] =~ /mswin/ $separator = File::PATH_SEPARATOR class String diff --git a/Master/texmf-dist/scripts/context/ruby/base/system.rb b/Master/texmf-dist/scripts/context/ruby/base/system.rb index c3fb08645a7..71c0af421f9 100644 --- a/Master/texmf-dist/scripts/context/ruby/base/system.rb +++ b/Master/texmf-dist/scripts/context/ruby/base/system.rb @@ -12,7 +12,7 @@ require "rbconfig" module System - @@mswindows = Config::CONFIG['host_os'] =~ /mswin/ + @@mswindows = RbConfig::CONFIG['host_os'] =~ /mswin/ @@binpaths = ENV['PATH'].split(File::PATH_SEPARATOR) @@binsuffixes = if $mswindows then ['.exe','.com','.bat'] else ['','.sh','.csh'] end @@located = Hash.new diff --git a/Master/texmf-dist/scripts/context/ruby/base/tool.rb b/Master/texmf-dist/scripts/context/ruby/base/tool.rb index abf0d5ed05c..1f10c955654 100644 --- a/Master/texmf-dist/scripts/context/ruby/base/tool.rb +++ b/Master/texmf-dist/scripts/context/ruby/base/tool.rb @@ -159,7 +159,7 @@ module Tool end - if Config::CONFIG['host_os'] =~ /mswin/ then + if RbConfig::CONFIG['host_os'] =~ /mswin/ then require 'Win32API' |