aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/develop/hub_options.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2015-01-15 22:32:08 -0500
committerRalph Amissah <ralph@amissah.com>2015-01-19 23:46:16 -0500
commitadf811ce6c6513e4db1fb2ddf67019607a1012ff (patch)
treeb17082e73edf1f1a5b526d2eeaa08d1ea79ef3a5 /lib/sisu/develop/hub_options.rb
parentd: po4a, provide po4a.cfg file (diff)
d: po4a_shelf, shelf current po4a, change tack
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 }