summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2005-07-21 00:00:00 +0200
committerHans Hagen <pragma@wxs.nl>2005-07-21 00:00:00 +0200
commit695613d847705c7c7f4f308722e8c2a67099d944 (patch)
treee7753787711b71d0a364a8f388fe9d79d14b78d3 /scripts
parente1e7a447633cde21cb8ef83878a8a2aac841d1ec (diff)
downloadcontext-695613d847705c7c7f4f308722e8c2a67099d944.tar.gz
stable 2005.07.21
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/ruby/base/tex.rb16
1 files changed, 8 insertions, 8 deletions
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