From adf811ce6c6513e4db1fb2ddf67019607a1012ff Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 15 Jan 2015 22:32:08 -0500 Subject: d: po4a_shelf, shelf current po4a, change tack --- lib/sisu/develop/hub_options.rb | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'lib/sisu/develop/hub_options.rb') diff --git a/lib/sisu/develop/hub_options.rb b/lib/sisu/develop/hub_options.rb index 1ea96af8..c3f31a88 100644 --- a/lib/sisu/develop/hub_options.rb +++ b/lib/sisu/develop/hub_options.rb @@ -614,7 +614,7 @@ module SiSU_Commandline if ch =~/N/ then select_arr << '--digests' ch=ch.gsub(/[N]/,'') end - if ch =~/P/ then select_arr << '--po4a' + if ch =~/P/ then select_arr << '--po4a-shelf' ch=ch.gsub(/[P]/,'') end if ch =~/d/ then select_arr << '--sqlite' @@ -1301,8 +1301,11 @@ module SiSU_Commandline =~/"--harvest"/) \ ? { bool: true, set: :on } : { bool: false, set: :na } - act[:po4a]=if (select_arr.inspect \ - =~/"--po4a"|"--pot?"/) + act[:po4a_shelf]=(select_arr.inspect \ + =~/"--po4a-shelf"|"--pot?-shelf"/) \ + ? { bool: true, set: :on } + : { bool: false, set: :na } + if act[:po4a_shelf][:set]==:on act[:po4a_lang_trans]=if select_arr.inspect \ =~/"--trans-([a-z]{2}):((?:(?:[a-z]{2}\b),?)+)/ lng_src,lng_trn=$1,$2.split(',') @@ -1321,18 +1324,12 @@ module SiSU_Commandline else { bool: false, set: :na } end - { bool: true, set: :on } else act[:po4a_lang_trans]= \ { bool: false, set: :na } act[:po4a_lang_init]= \ { bool: false, set: :na } - { bool: false, set: :na } end - #act[:po4a]=(select_arr.inspect \ - #=~/"--po4a"|"--pot?"/) \ - #? { bool: true, set: :on } - #: { bool: false, set: :na } act[:git]=(select_arr.inspect \ =~/"--git"/) \ ? { bool: true, set: :on } -- cgit v1.2.3