diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-05-25 22:54:56 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-05-29 20:32:16 -0400 |
commit | 93cc261ead4f31aeed85d19e68fc0afccb1c771f (patch) | |
tree | 7223e967f0d15d582e38973b0611ecbb303b3a7b /lib/sisu/v3/hub.rb | |
parent | v3: i18n, constants, some language info moved to i18n (from constants) (diff) |
v3: options --find & --glob (-f -G) added, parses language sub-dirs
* options
* filter out files not matching .ss[tm]
* with -f -G (--find|--glob) flag glob all .ss[tm] files in dir including
language sub-directories
sisu3 -3G live-manual
* with -f (--find|--glob) flag and find .ss[tm] files that match given
string in dir including language subdirectories
sisu3 -3GR
Diffstat (limited to 'lib/sisu/v3/hub.rb')
-rw-r--r-- | lib/sisu/v3/hub.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisu/v3/hub.rb b/lib/sisu/v3/hub.rb index 651276cd..5eac0b03 100644 --- a/lib/sisu/v3/hub.rb +++ b/lib/sisu/v3/hub.rb @@ -153,7 +153,7 @@ module SiSU when /^xhtml$/; SiSU_XHTML::Source.new(@opt).read # -b xhtml.rb when /^xml$/; SiSU_XML_SAX::Source.new(@opt).read # -x xml.rb when /^xml_dom$/; SiSU_XML_DOM::Source.new(@opt).read # -X xml_dom.rb - when /^xml_fictionbook$/; SiSU_XML_Fictionbook::Source.new(@opt).read # -f + #when /^xml_fictionbook$/; SiSU_XML_Fictionbook::Source.new(@opt).read # -f when /^xml_scaffold$/; SiSU_XML_scaffold::Source.new(@opt).read # -k xml_scaffold.rb when /^embedded$/; SiSU_Embedded::Source.new(@opt).read # -m embedded.rb (image and other content) #check when /^manifest$/; SiSU_Manifest::Source.new(@opt).read # -y manifest.rb @@ -420,9 +420,9 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/ if @opt.act[:xml_dom] #% --xml-dom, -x xml dom type op('xml_dom','xml dom') end - if @opt.act[:fictionbook] #% --fictionbook, -f fictionbook xml - op('xml_fictionbook','xml fictionbook') - end + #if @opt.act[:fictionbook] #% --fictionbook, -f fictionbook xml + # op('xml_fictionbook','xml fictionbook') + #end if @opt.act[:xhtml] #% --xhtml, -b xhtml op('xhtml','xhtml sax') end |