From 695613d847705c7c7f4f308722e8c2a67099d944 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Thu, 21 Jul 2005 00:00:00 +0200 Subject: stable 2005.07.21 --- scripts/context/ruby/base/tex.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'scripts') diff --git a/scripts/context/ruby/base/tex.rb b/scripts/context/ruby/base/tex.rb index 8ff7d682f..382b5aa73 100644 --- a/scripts/context/ruby/base/tex.rb +++ b/scripts/context/ruby/base/tex.rb @@ -1205,8 +1205,8 @@ class TEX if getvariable('simplerun') || runonce then makeoptionfile(jobname,orisuffix,true,true,3) - problems = runtex(File.suffixed(jobname,jobsuffix)) - unless problems then + ok = runtex(File.suffixed(jobname,jobsuffix)) + if ok then ok = runtexutil(jobname) if getvariable('texutil') || getvariable('forcetexutil') runbackend(jobname) popresult(jobname,result) @@ -1245,16 +1245,16 @@ class TEX end end ok = runtexutil(jobname) if (nofruns == 1) && getvariable('texutil') - if ! problems && finalrun && (nofruns > 1) then + if ok && finalrun && (nofruns > 1) then makeoptionfile(jobname,orisuffix,true,finalrun,4) report("final TeX run #{texruns}") - problems = runtex(File.suffixed(jobname,jobsuffix)) + ok = runtex(File.suffixed(jobname,jobsuffix)) end File.silentcopy(File.suffixed(jobname,'top'),File.suffixed(jobname,'tmp')) ['tup','top'].each do |s| # previous tuo file / runtime option file File.silentdelete(File.suffixed(jobname,s)) end - unless problems then + if ok then runbackend(jobname) popresult(jobname,result) end @@ -1264,11 +1264,11 @@ class TEX when 'latex' then - problems = runtex(File.suffixed(jobname,jobsuffix)) + ok = runtex(File.suffixed(jobname,jobsuffix)) else - problems = runtex(File.suffixed(jobname,jobsuffix)) + ok = runtex(File.suffixed(jobname,jobsuffix)) end @@ -1278,7 +1278,7 @@ class TEX report("unable to delete stub file") end - if ! problems && getvariable('autopdf') then + if ok && getvariable('autopdf') then PDFview.open(File.suffixed(if result.empty? then jobname else result end,'pdf')) end -- cgit v1.2.3