aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v5/options.rb')
-rw-r--r--lib/sisu/v5/options.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sisu/v5/options.rb b/lib/sisu/v5/options.rb
index c3cfa8c7..7645c48e 100644
--- a/lib/sisu/v5/options.rb
+++ b/lib/sisu/v5/options.rb
@@ -70,7 +70,7 @@ module SiSU_Commandline
require_relative 'sysenv' # sysenv.rb
require_relative 'param_make' # param_make.rb
class HeaderCommon
- def sisu_document_make_instructions
+ def sisu_document_make_instructions(make_instruct_array=:nil)
@pagenew=
@pagebreak=
@pageline=
@@ -87,7 +87,9 @@ module SiSU_Commandline
@home_button_links=
@links=
nil
- make_instruct_array=SiSU_Env::GetInit.new.sisu_document_make.makefile_read
+ make_instruct_array=make_instruct_array==:nil \
+ ? SiSU_Env::GetInit.new.sisu_document_make.makefile_read
+ : make_instruct_array
@makeset=false
if make_instruct_array
make_instruct_array.each do |para| #% scan document
@@ -334,7 +336,7 @@ module SiSU_Commandline
pod_make_path=fullname + '/sisupod/doc/_sisu'
make_instruct_array=sisu_document_make_pod.makefile_read(pod_make_path)
@make_instructions_pod=
- HeaderCommon.new(make_instruct_array).sisu_document_make_instructions
+ HeaderCommon.new.sisu_document_make_instructions(make_instruct_array)
Dir.chdir(pt.realpath)
system("
chdir #{fullname}