From 5abc572129ac49178aa77ea59cb8e5d611e6374f Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 1 Mar 2011 20:46:02 -0500 Subject: v3: sysenv, separate out processing_path method plus consequences --- lib/sisu/v3/texpdf.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/sisu/v3/texpdf.rb') diff --git a/lib/sisu/v3/texpdf.rb b/lib/sisu/v3/texpdf.rb index 31300f8f..9497d51f 100644 --- a/lib/sisu/v3/texpdf.rb +++ b/lib/sisu/v3/texpdf.rb @@ -91,7 +91,7 @@ module SiSU_TeX case @opt.fns when /\.(?:-|ssm\.)?sst$/ SiSU_Env::SiSU_file.new(@md).mkdir - Dir.mkdir(@env.path.processing_tex) unless FileTest.directory?(@env.path.processing_tex) + Dir.mkdir(@env.processing_path.tex) unless FileTest.directory?(@env.processing_path.tex) end rescue; SiSU_Errors::Info_error.new($!,$@,@opt.cmd,@opt.fns).error ensure @@ -123,7 +123,7 @@ module SiSU_TeX rescue; SiSU_Errors::Info_error.new($!,$@,@opt.cmd,@opt.fns).error ensure unless @opt.cmd =~/[MV]/ #check maintenance flag - texfiles=Dir["#{@env.path.processing_tex}/#{@opt.fns}*"] + texfiles=Dir["#{@env.processing_path.tex}/#{@opt.fns}*"] texfiles.each do |f| if FileTest.file?(f) File.unlink(f) @@ -206,8 +206,8 @@ module SiSU_TeX if @md.fns =~/\.(?:-|ssm\.)?sst$/ case @md.fns when /\.(?:-|ssm\.)?sst$/ - if FileTest.directory?(@env.path.processing_tex)==true - Dir.chdir(@env.path.processing_tex) + if FileTest.directory?(@env.processing_path.tex)==true + Dir.chdir(@env.processing_path.tex) texfile=@md.fns.gsub(/$/,".#{ps}.tex") texfile=texfile.gsub(/~/,'-') if File.exist?(texfile) \ @@ -216,7 +216,7 @@ module SiSU_TeX #p "#{__FILE__}:#{__LINE__} texpdf generation disabled" if @md.cmd.inspect =~/M/ #%% disable temporarily, re-enable latex_do(texfile,ps) else - puts "\tzero file size #{@env.path.processing_tex}/#{texfile}" + puts "\tzero file size #{@env.processing_path.tex}/#{texfile}" end end end @@ -780,8 +780,8 @@ WOK fns_l=@md.fns.gsub(/~/,'-') #this is a sorry fix, but necessary as it appears latex programs like not ~ @md.papersize_array.each do |ps| file={ - landscape: File.new("#{@env.path.processing_tex}/#{fns_l}.#{ps}.landscape.tex",'w+'), - portrait: File.new("#{@env.path.processing_tex}/#{fns_l}.#{ps}.tex",'w+') + landscape: File.new("#{@env.processing_path.tex}/#{fns_l}.#{ps}.landscape.tex",'w+'), + portrait: File.new("#{@env.processing_path.tex}/#{fns_l}.#{ps}.tex",'w+') } file[:portrait] << @@tex_head[ps][:p] file[:landscape] << @@tex_head[ps][:l] -- cgit v1.2.3