diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-08-17 00:58:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-08-17 00:58:00 +0200 |
commit | db880f87c095b00754b51e7f7995f63b1f3ff554 (patch) | |
tree | a6f321cb9fb4be890e9d0e553bdfc358c6ae22be /scripts | |
parent | 2b566444186caf1df842bd40cba141ec7153f1d1 (diff) | |
download | context-db880f87c095b00754b51e7f7995f63b1f3ff554.tar.gz |
beta 2013.08.17 00:58
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/ruby/base/tex.rb | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/scripts/context/ruby/base/tex.rb b/scripts/context/ruby/base/tex.rb index 4ca18ee99..9a520f313 100644 --- a/scripts/context/ruby/base/tex.rb +++ b/scripts/context/ruby/base/tex.rb @@ -629,34 +629,36 @@ class TEX texformatpath = '' end # generate mps formats - if mpsformats && mpsengine then - report("using mp engine #{mpsengine}") - mpsformatpath = if getvariable('local') then '.' else Kpse.formatpath(mpsengine,false) end - report("using mps format path #{mpsformatpath}") - Dir.chdir(mpsformatpath) rescue false - if FileTest.writable?(mpsformatpath) then - mpsformats.each do |mpsformat| - report("generating mps format #{mpsformat}") - progname = validprogname([getvariable('progname'),mpsformat,mpsengine]) - if not runcommand([quoted(mpsengine),prognameflag(progname),iniflag,runoptions(mpsengine),mpsformat,mpsmakeextras(mpsformat)]) then - setvariable('error','no format made') - end - end - else - report("unable to make format due to lack of permissions") - mpsformatpath = '' - setvariable('error','file permission problem') - end - else - mpsformatpath = '' - end + # if mpsformats && mpsengine then + # report("using mp engine #{mpsengine}") + # mpsformatpath = if getvariable('local') then '.' else Kpse.formatpath(mpsengine,false) end + # report("using mps format path #{mpsformatpath}") + # Dir.chdir(mpsformatpath) rescue false + # if FileTest.writable?(mpsformatpath) then + # mpsformats.each do |mpsformat| + # report("generating mps format #{mpsformat}") + # progname = validprogname([getvariable('progname'),mpsformat,mpsengine]) + # if not runcommand([quoted(mpsengine),prognameflag(progname),iniflag,runoptions(mpsengine),mpsformat,mpsmakeextras(mpsformat)]) then + # setvariable('error','no format made') + # end + # end + # else + # report("unable to make format due to lack of permissions") + # mpsformatpath = '' + # setvariable('error','file permission problem') + # end + # else + # mpsformatpath = '' + # end # check for problems report("") report("tex engine path: #{texformatpath}") unless texformatpath.empty? - report("mps engine path: #{mpsformatpath}") unless mpsformatpath.empty? + # report("mps engine path: #{mpsformatpath}") unless mpsformatpath.empty? report("") - [['fmt','tex'],['mem','mps']].each do |f| - [[texformatpath,'global'],[mpsformatpath,'global'],[savedpath,'current']].each do |p| + # [['fmt','tex'],['mem','mps']].each do |f| + # [[texformatpath,'global'],[mpsformatpath,'global'],[savedpath,'current']].each do |p| + [['fmt','tex']].each do |f| + [[texformatpath,'global'],[savedpath,'current']].each do |p| begin Dir.chdir(p[0]) rescue |