From db15c23ad882d0a61a7244d381544c653accf659 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 19 Oct 2007 01:01:26 +0100 Subject: first pass at fictionbook output; images posted with document rsync; also ... * first pass at fictionbook output - fictionbook is interesting, (develop over time or drop support) * images in document posted with document rsync * ruby1.9 strip bug re-encountered in debian sid build version, (unless it is my setup) see changelog --- lib/sisu/v0/sysenv.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/sisu/v0/sysenv.rb') diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb index e5c2c394..3f92e9b7 100644 --- a/lib/sisu/v0/sysenv.rb +++ b/lib/sisu/v0/sysenv.rb @@ -2315,7 +2315,9 @@ WOK def rsync self.remote_host_base.each do |remote_conn| local_gen=@source_path + local_gen_image="#{@env.path.webserv}/#{@env.path.stub_pwd}/_sisu/image" remote_gen="#{remote_conn[:name]}/#{@env.path.stub_pwd}/." + remote_images="#{remote_conn[:name]}/#{@env.path.stub_pwd}/_sisu/image/." local_src=@source_path_src remote_src="#{remote_conn[:name]}/#{@env.path.stub_src}/." src_txt=@opt.fnc @@ -2330,6 +2332,10 @@ WOK if FileTest.file?("#{local_src}/#{src_txt}") \ or FileTest.file?("#{local_src}/#{src_pod}") System_call.new("#{local_src}/#{src_txt} #{local_src}/#{src_pod}",remote_src,@opt.cmd).rsync + if defined? @md.ec[:image] + images="#{local_gen_image}/" + @md.ec[:image].join(" #{local_gen_image}/") + System_call.new(images,remote_images,@opt.cmd).rsync + end end elsif @opt.cmd =~/U/ puts "#{__FILE__} #{__LINE__}" if @opt.cmd =~/M/ -- cgit v1.2.3