summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/context
diff options
context:
space:
mode:
authorMojca Miklavec <mojca.miklavec@gmail.com>2013-01-10 02:45:57 +0000
committerMojca Miklavec <mojca.miklavec@gmail.com>2013-01-10 02:45:57 +0000
commitc641bbba3a500d932686691a80fc95fd45682bae (patch)
treed384207458839f58cd0a2520f5cc134723048f47 /Master/texmf-dist/scripts/context
parentdb19b2fa504cfe11cb7c51f0c5d66e792ccde198 (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')
-rw-r--r--Master/texmf-dist/scripts/context/ruby/base/kpse.rb2
-rw-r--r--Master/texmf-dist/scripts/context/ruby/base/switch.rb2
-rw-r--r--Master/texmf-dist/scripts/context/ruby/base/system.rb2
-rw-r--r--Master/texmf-dist/scripts/context/ruby/base/tool.rb2
-rw-r--r--Master/texmf-dist/scripts/context/ruby/fcd_start.rb2
-rw-r--r--Master/texmf-dist/scripts/context/ruby/runtools.rb2
-rwxr-xr-xMaster/texmf-dist/scripts/context/ruby/texmfstart.rb2
-rw-r--r--Master/texmf-dist/scripts/context/ruby/texsync.rb2
8 files changed, 8 insertions, 8 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'
diff --git a/Master/texmf-dist/scripts/context/ruby/fcd_start.rb b/Master/texmf-dist/scripts/context/ruby/fcd_start.rb
index b1fa42a2a69..3d04754fac9 100644
--- a/Master/texmf-dist/scripts/context/ruby/fcd_start.rb
+++ b/Master/texmf-dist/scripts/context/ruby/fcd_start.rb
@@ -57,7 +57,7 @@ class FastCD
exit unless @@rootpath
- @@mswindows = Config::CONFIG['host_os'] =~ /mswin/
+ @@mswindows = RbConfig::CONFIG['host_os'] =~ /mswin/
@@maxlength = 26
require 'Win32API' if @@mswindows
diff --git a/Master/texmf-dist/scripts/context/ruby/runtools.rb b/Master/texmf-dist/scripts/context/ruby/runtools.rb
index 5565748e272..77f805221aa 100644
--- a/Master/texmf-dist/scripts/context/ruby/runtools.rb
+++ b/Master/texmf-dist/scripts/context/ruby/runtools.rb
@@ -65,7 +65,7 @@ class Job
end
def platform
- case Config::CONFIG['host_os']
+ case RbConfig::CONFIG['host_os']
when /mswin/ then :windows
else :unix
end
diff --git a/Master/texmf-dist/scripts/context/ruby/texmfstart.rb b/Master/texmf-dist/scripts/context/ruby/texmfstart.rb
index be892c83ced..6e508eeb9a5 100755
--- a/Master/texmf-dist/scripts/context/ruby/texmfstart.rb
+++ b/Master/texmf-dist/scripts/context/ruby/texmfstart.rb
@@ -135,7 +135,7 @@ end
# kpse_merge_stop
-$mswindows = Config::CONFIG['host_os'] =~ /mswin/
+$mswindows = RbConfig::CONFIG['host_os'] =~ /mswin/
$separator = File::PATH_SEPARATOR
$version = "2.1.0"
$ownpath = File.dirname($0)
diff --git a/Master/texmf-dist/scripts/context/ruby/texsync.rb b/Master/texmf-dist/scripts/context/ruby/texsync.rb
index 00461039982..fd6593f05fb 100644
--- a/Master/texmf-dist/scripts/context/ruby/texsync.rb
+++ b/Master/texmf-dist/scripts/context/ruby/texsync.rb
@@ -140,7 +140,7 @@ class Commands
texpaths = ['texmf','texmf-local','texmf-fonts','texmf-mswin','texmf-linux','texmf-macos']
elsif option('terse') then
texpaths = ['texmf','texmf-local','texmf-fonts']
- case Config::CONFIG['host_os'] # or: Tool.ruby_platform
+ case RbConfig::CONFIG['host_os'] # or: Tool.ruby_platform
when /mswin/ then texpaths.push('texmf-mswin')
when /linux/ then texpaths.push('texmf-linux')
when /darwin/ then texpaths.push('texmf-macosx')