aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-10-15 13:57:29 -0400
committerRalph Amissah <ralph@amissah.com>2011-10-15 13:57:29 -0400
commit6d46257531b1384a3bff974e039b70f7a45c3ecc (patch)
tree8ec8f2033c3e3ab3a99825a5fb2412f7e730dc2a /lib/sisu/v3/sysenv.rb
parentv3: manifest, odt url lnk, fix (diff)
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)
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