From 6d46257531b1384a3bff974e039b70f7a45c3ecc Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 15 Oct 2011 13:57:29 -0400 Subject: v2 v3: odf:odt v1.0: make odt header easier to track; remove binary blob * make odt header changes easier to track (this commit maintains rough equivalence to sisu-3.1.0 headers) * sysenv, builds odf:odt directory structure instead of binary blob * get rid of odf:odt (binary changeset) blob zipfile (containing odf:odt directory structure) --- lib/sisu/v3/sysenv.rb | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'lib/sisu/v3/sysenv.rb') diff --git a/lib/sisu/v3/sysenv.rb b/lib/sisu/v3/sysenv.rb index 3ef176ec..b1560c66 100644 --- a/lib/sisu/v3/sysenv.rb +++ b/lib/sisu/v3/sysenv.rb @@ -1076,15 +1076,6 @@ module SiSU_Env ? @rc['default']['text_wrap'].to_i : 78 end - #def by_language? - # @env.by_language? - #end - #def by_filetype? - # @env.by_filetype? - #end - #def multilingual? - # by_language? - #end def current_document @@current_document||=Dir.pwd @@current_document @@ -1715,7 +1706,7 @@ WOK man_path=if defined? @rc['webserv']['path'] \ and @rc['webserv']['path'] =~/\S\S+/ man_path=@@man_path=File.expand_path(@rc['webserv']['path']) - else defaults[:webserv_path] #NEW BUG FIX 2010-10-26 + else defaults[:webserv_path] end else @@man_path end @@ -1947,6 +1938,20 @@ WOK mkdir_p(pth) unless FileTest.directory?(pth) pth end + def odf + pth="#{processing}/odf" + mkdir_p(pth) unless FileTest.directory?(pth) + pth + end + def odt_bld + rm_rf(processing_path.odt) + mkdir_p(processing_path.odt) unless FileTest.directory?(processing_path.odt) + mkdir_p("#{processing_path.odt}/Configurations2") unless FileTest.directory?("#{processing_path.odt}/Configurations2") + mkdir_p("#{processing_path.odt}/META-INF") unless FileTest.directory?("#{processing_path.odt}/META-INF") + mkdir_p("#{processing_path.odt}/Pictures") unless FileTest.directory?("#{processing_path.odt}/Pictures") + mkdir_p("#{processing_path.odt}/Thumbnails") unless FileTest.directory?("#{processing_path.odt}/Thumbnails") + processing_path.odt + end def epub "#{processing}/epub/#{@fnb}" end -- cgit v1.2.3