diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-10-15 14:00:39 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-10-15 14:00:39 -0400 |
commit | 881adaa2bd73a7e3da49752986b6cf46042de89a (patch) | |
tree | 5dd5dbf39ec0e3278ab9664190bbb9a0b9aca223 /lib/sisu/v3/sysenv.rb | |
parent | debian/changelog (3.1.0-1) (diff) | |
parent | v3: odf:odt, make odt style names more easily recognizable (diff) |
Merge commit 'sisu_3.1.1' into debian/sid
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r-- | lib/sisu/v3/sysenv.rb | 25 |
1 files changed, 15 insertions, 10 deletions
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 |