Show a message when entering/leaving a subsidiary script directory

This commit is contained in:
Josh Holtrop 2021-10-22 16:48:44 -04:00
parent 7c8becc3f9
commit 8c7b43f60c

View File

@ -20,7 +20,9 @@ module Rscons
command = ["ruby", $LOAD_PATH.map {|p| ["-I", p]}, command].flatten # specs
end # specs
dir = File.dirname(script_path)
puts "Entering directory '#{dir}'..."
result = system(*command, chdir: dir)
puts "Leaving directory '#{dir}'..."
unless result
raise RsconsError.new("Failed command: " + command.join(" "))
end