aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/sysenv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r--lib/sisu/v3/sysenv.rb25
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