diff options
Diffstat (limited to 'Master/texmf-dist/scripts/context/ruby/rlxtools.rb')
-rw-r--r-- | Master/texmf-dist/scripts/context/ruby/rlxtools.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/context/ruby/rlxtools.rb b/Master/texmf-dist/scripts/context/ruby/rlxtools.rb index 1617fcad4ae..6a5c5ca2098 100644 --- a/Master/texmf-dist/scripts/context/ruby/rlxtools.rb +++ b/Master/texmf-dist/scripts/context/ruby/rlxtools.rb @@ -19,7 +19,8 @@ require 'base/logger' require 'base/system' require 'base/kpse' -require 'ftools' +require 'fileutils' +# require 'ftools' require 'rexml/document' class Commands @@ -111,7 +112,7 @@ class Commands REXML::XPath.each(localsteps,tag) do |extras| REXML::XPath.each(extras,"rl:value") do |value| if name = value.attributes['name'] then - substititute(value,variables[name.to_s] || '') + substitute(value,variables[name.to_s] || '') end end end @@ -144,7 +145,7 @@ class Commands end REXML::XPath.each(command,"rl:value") do |value| if name = value.attributes['name'] then - substititute(value,variables[name.to_s]) + substitute(value,variables[name.to_s]) end end str = justtext(command.to_s) @@ -203,7 +204,7 @@ class Commands return str.strip end - def substititute(value,str='') + def substitute(value,str='') if str then begin if value.attributes.key?('method') then |