diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-04-26 20:58:26 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-04-26 20:59:24 -0400 |
commit | 8b3f9e832f69bcef52f073678bbde1fcc588e695 (patch) | |
tree | 072fa5e187b8923957200a218256cf41c96bb373 /lib/sisu/v2/hub.rb | |
parent | sisupod_make, take new markup into account, done for :skin: (diff) |
git, start experimenting with an alternative/parallel git based sisu document structure
* git, start to experiment with file structure to replace sisupod -g and will
be in configure options, to track changes to document, enable creation of
"pods" (zipped content) and allow for remote versioned (or unversioned)
placement of content source; ideally would end up with two co-existing,
distinct parse-able structures whether local or remote, the existing directory
structure with multiple documents and document images etc. and git directories
with all content associated with a single document (including other language
versions of it); cannot guarantee at this stage that the file structure will be
retained, which may mean recreating any directory started and defeat the
purpose of using it, though it is in a version control repo, so perhaps not ...
best left alone (unused) for now
Diffstat (limited to 'lib/sisu/v2/hub.rb')
-rw-r--r-- | lib/sisu/v2/hub.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/sisu/v2/hub.rb b/lib/sisu/v2/hub.rb index 08a120fa..58f62d0f 100644 --- a/lib/sisu/v2/hub.rb +++ b/lib/sisu/v2/hub.rb @@ -124,6 +124,7 @@ module SiSU @opt.fns=fns.gsub(/\.ssm$/,'.ssm.sst') end SiSU_DAL::Source.new(@opt).read # -m + when /^git$/; SiSU_Git::Source.new(@opt).read # -g when /^concordance$/; SiSU_Concordance::Source.new(@opt).read # -w when /^share_src$/; SiSU_Markup::Source.new(@opt).read # -s when /^sisupod_make$/; SiSU_Doc::Source.new(@opt).read # -S @@ -283,7 +284,7 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/ if @opt.mod.inspect =~/--convert|--to|--from/ require "#{SiSU_lib}/sst_convert_markup" # sst_convert_markup.rb end - if @opt.cmd =~/([AabCcDdeFfGHhIiJjLMmNnOopQqrRSsTtUuVvwWXxYyZ_0-9])/ \ + if @opt.cmd =~/([AabCcDdeFfgGHhIiJjLMmNnOopQqrRSsTtUuVvwWXxYyZ_0-9])/ \ and @opt.cmd =~/^-/ \ and @opt.mod.inspect !~/--(?:sitemaps|query|identify)/ \ or @opt.mod.inspect =~/--(?:(?:sq)?lite|pg(?:sql)?)/ #and @@ -292,7 +293,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]/ \ + extra+=if @opt.cmd =~/[abehHhIiJjNOoptTwXxz]/ \ and @opt.cmd !~/[mn]/ 'm' #% add dal elsif ((@opt.cmd =~/[Dd]/ \ @@ -372,6 +373,9 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/ if @opt.cmd =~/s/ #% -s sisu source op('share_src','SiSU markup source') end + if @opt.cmd =~/g/ #% -g sisu git + op('git','SiSU Git') + end if @opt.cmd =~/m/ #% -m is remote url requested? (download if) @retry_count= -1 begin |