aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-05-23 22:05:51 -0400
committerRalph Amissah <ralph@amissah.com>2011-05-23 22:15:23 -0400
commit3a07ef3ca212b8858454c84f5bfbf8473c8830e1 (patch)
tree57041b20082552e105bd40e2709d8f8b20dede7a /lib
parentv3: html, close files; syslink index.html to toc.html (diff)
v3: options, include markup source "base" path
* used to parse alternative markup source dir structures
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v3/options.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sisu/v3/options.rb b/lib/sisu/v3/options.rb
index aabbd946..e57bf7fa 100644
--- a/lib/sisu/v3/options.rb
+++ b/lib/sisu/v3/options.rb
@@ -60,14 +60,17 @@
module SiSU_commandline
require "pathname"
require_relative 'sysenv' # sysenv.rb
+ @@base_path=nil
class Options
- attr_accessor :cmd,:mod,:act,:dir_structure_by,:f_pths,:files,:paths,:lngs,:f_pth,:pth,:fns,:fnb,:fnc,:fncb,:lng,:what
+ attr_accessor :cmd,:mod,:act,:dir_structure_by,:f_pths,:files,:base_path,:paths,:lngs,:f_pth,:pth,:fns,:fnb,:fnc,:fncb,:lng,:what
def initialize(a)
@x=a
- @cmd,@f_pth,@pth,@fns,@fnb,@fnc,@fncb,@what,@lng='','','','','','','','','',''
+ @cmd,@f_pth,@pth,@fns,@fnb,@fnc,@fncb,@what,@lng,@base_path='','','','','','','','','','',''
@f_pths,@files,@paths,@mod,@act=Array.new(5){[]}
@env=SiSU_Env::Info_env.new
@dir_structure_by=SiSU_Env::Env_call.new.output_dir_structure.by?
+ @@base_path ||=Dir.pwd
+ @base_path=@@base_path
r=Px[:lng_lst].join('|')
r.gsub!(/\|en\|/,'|')
@lang_regx=%r{(?:#{r})}