From de4b7d3ebae90c136fe1d571e78f9d20cafc2c25 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 26 Jul 2010 18:38:57 -0400 Subject: git sisu directory structure, lang dir beneath txt * git sisu directory structure becomes more complicated --- lib/sisu/v2/git.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v2/git.rb b/lib/sisu/v2/git.rb index 2d7629fd..b910c723 100644 --- a/lib/sisu/v2/git.rb +++ b/lib/sisu/v2/git.rb @@ -65,9 +65,17 @@ module SiSU_Git def initialize(opt) @opt=opt @env=SiSU_Env::Info_env.new + l=SiSU_Env::Standardise_language.new.file_to_language(@opt.fns) @git_path={} - @git_path[:fnb]=@env.path.processing_path_git + '/' + @opt.fnb - @git_path[:src]=@git_path[:fnb] + '/' + Gt[:txt] + if @env.i18n.multilingual + m=/((.+?)(?:\~\w{2,3})?)\.((?:-|ssm\.)?sst)$/ #watch added match for sss + fnn,fnb,fnt=@opt.fns[m,1],@opt.fns[m,2],@opt.fns[m,3] + else m=/(.+?)\.((?:-|ssm\.)?sst)$/ + fnb=@fnn=@opt.fns[m,1] + fnt=@opt.fns[m,2] + end + @git_path[:fnb]=@env.path.processing_path_git + '/' + fnb # + @opt.fnb + @git_path[:src]=@git_path[:fnb] + '/' + Gt[:txt] + '/' + l[:c] @git_path[:image]=@git_path[:fnb] + '/' + Gt[:image] @git_path[:conf]=@git_path[:fnb] + '/' + Gt[:conf] @md=SiSU_Param::Parameters.new(@opt).get -- cgit v1.2.3