Show a message when entering/leaving a subsidiary script directory
This commit is contained in:
parent
7c8becc3f9
commit
8c7b43f60c
@ -20,7 +20,9 @@ module Rscons
|
|||||||
command = ["ruby", $LOAD_PATH.map {|p| ["-I", p]}, command].flatten # specs
|
command = ["ruby", $LOAD_PATH.map {|p| ["-I", p]}, command].flatten # specs
|
||||||
end # specs
|
end # specs
|
||||||
dir = File.dirname(script_path)
|
dir = File.dirname(script_path)
|
||||||
|
puts "Entering directory '#{dir}'..."
|
||||||
result = system(*command, chdir: dir)
|
result = system(*command, chdir: dir)
|
||||||
|
puts "Leaving directory '#{dir}'..."
|
||||||
unless result
|
unless result
|
||||||
raise RsconsError.new("Failed command: " + command.join(" "))
|
raise RsconsError.new("Failed command: " + command.join(" "))
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user