aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v4')
-rw-r--r--lib/sisu/v4/sysenv.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/sisu/v4/sysenv.rb b/lib/sisu/v4/sysenv.rb
index bcd7c09d..eda1ad46 100644
--- a/lib/sisu/v4/sysenv.rb
+++ b/lib/sisu/v4/sysenv.rb
@@ -822,11 +822,11 @@ module SiSU_Env
: (STDERR.puts "\t*WARN* #{program} is not installed #{program_ref}")
end
def tex2pdf_engine
- prog=['xetex','xelatex','pdflatex','pdfetex','pdftex']
+ progs=['xetex','xelatex','pdflatex','pdfetex','pdftex']
@pdfetex_flag=false
@cmd ||=''
@texpdf=nil
- prog.each do |program|
+ progs.each do |program|
if program_found?(program)
@texpdf=program if program =~/xetex|xelatex|pdftex|pdflatex/
@pdfetex_flag=true
@@ -834,7 +834,7 @@ module SiSU_Env
end
end
if @pdfetex_flag==false
- @texpdf=prog.join(', ')
+ @texpdf=progs.join(', ')
end
@texpdf
end
@@ -846,7 +846,6 @@ module SiSU_Env
else %q{2>&1 | grep -v '$'}
end
mode='batchmode' #mode='nonstopmode'
- program_ref="\n\t\tSee http://www.tug.org/applications/pdftex/\n\t\tOn Debian this is is included in tetex-extra"
texpdf=tex2pdf_engine
if @pdfetex_flag
texpdf_cmd=case texpdf
@@ -860,7 +859,7 @@ module SiSU_Env
"#{texpdf} -interaction=#{mode} #{@input} #{tell}\n"
end
system(texpdf_cmd)
- else STDERR.puts "\t*WARN* none of the following programs are installed: #{program[0]}, #{program[1]}, #{program[2]} is installed. #{program_ref}"
+ else STDERR.puts "\t*WARN* none of the following programs are installed: #{@texpdf}"
end
end
def makeinfo #texinfo