aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/develop/hub_options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/develop/hub_options.rb')
-rw-r--r--lib/sisu/develop/hub_options.rb15
1 files changed, 6 insertions, 9 deletions
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 }