diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sisu/v0/hub.rb | 6 | ||||
| -rw-r--r-- | lib/sisu/v0/termsheet.rb | 2 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/lib/sisu/v0/hub.rb b/lib/sisu/v0/hub.rb index a5c82aac..4880807d 100644 --- a/lib/sisu/v0/hub.rb +++ b/lib/sisu/v0/hub.rb @@ -298,7 +298,7 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/      def actions        if @opt.mod.inspect =~/--convert|--to|--from/; require "#{SiSU_lib}/sst_convert_markup"        end -      if @opt.cmd =~/([AabCcDdEeFfgGHhIiJjLMmNnOopQqrRSsTtUuVvwWXxYyZ_0-9])/ and +      if @opt.cmd =~/([abCcDdFfgGHhIiJjLMmNnOopQqrRSsTtUuVvwWXxYyZ_0-9])/ and           @opt.cmd =~/^-/ and           @opt.mod.inspect !~/--(?:sitemaps|query|identify)/ or           @opt.mod.inspect =~/--(?:(?:sq)?lite|pg(?:sql)?)/ #and @@ -307,7 +307,7 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/          flag=SiSU_Env::Info_processing_flag.new          extra=''          if @opt.cmd !~/[mn]/ -          extra+=if @opt.cmd =~/[abeghHhIiJjNOoptTwXxz]/ and @opt.cmd !~/[mn]/; 'm'           #% add dal +          extra+=if @opt.cmd =~/[abghHhIiJjNOoptTwXxz]/ and @opt.cmd !~/[mn]/; 'm'           #% add dal            elsif ((@opt.cmd =~/[Dd]/ or (@opt.mod.inspect =~/--(?:(?:sq)?lite|pg(?:sql)?)/)) \            and @opt.mod.inspect !~/(?:remove|(?:(?:re)?create(?:all)?|dropall|drop)$)/) \            and @opt.cmd !~/[mn]/ @@ -467,7 +467,7 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/          end          if @opt.cmd =~/[hHz]/; op('html','html')               #% -h -H -z html css          end -        if @opt.cmd =~/[aAfeE]/; op('plaintext','plaintext')   #% -a -A -f -e -E plaintext -a creates ms-dos type; -A creates unix type, plaintext file +        if @opt.cmd =~/a/; op('plaintext','plaintext')   #% -a #-A -f -e -E plaintext -a creates ms-dos type; -A creates unix type, plaintext file          end          if @opt.cmd =~/g/; op('wikispeak','wikispeak')         #% -g wiki          end diff --git a/lib/sisu/v0/termsheet.rb b/lib/sisu/v0/termsheet.rb index ee8b1d17..e65e5961 100644 --- a/lib/sisu/v0/termsheet.rb +++ b/lib/sisu/v0/termsheet.rb @@ -70,7 +70,7 @@ def talent(termsheet,flag)    @@info=termsheet.gsub(/(.+?)\.termsheet\.rb/,'../facility_data/\1.html')    @env=SiSU_Env::Info_env.new    @dir_fd="#{@env.path.output}/facility_data" -  Dir.mkdir(@dir_fd) unless FileTest.directory?(@dir_fd)==true +  File.mkpath(@dir_fd) unless FileTest.directory?(@dir_fd)==true    html_output=[]    case termsheet    when /.+?\.(termsheet)\.rb$/ | 
