summaryrefslogtreecommitdiff
path: root/scripts/context/ruby
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-08-17 02:00:14 +0300
committerMarius <mariausol@gmail.com>2013-08-17 02:00:14 +0300
commit58d0e80f6d6bca23135f7d475a68b6a75853015b (patch)
treef9a3698231ae6e2e8dd31ec5d0d345d27ae746a9 /scripts/context/ruby
parentdf40fcf9fdc193a2c5c2a16166250f675ea89567 (diff)
downloadcontext-58d0e80f6d6bca23135f7d475a68b6a75853015b.tar.gz
beta 2013.08.17 00:58
Diffstat (limited to 'scripts/context/ruby')
-rw-r--r--scripts/context/ruby/base/tex.rb50
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