From what I have read, I would expect the ruby/rake “sh” command to echo
the system call to STDOUT - instead just executing it. Is there some
reason why ruby/rake would not be echoing my system commands to my
command window? I am running in Windows. Here is an example:
rule “.#{OBJ_EXT}” => lambda{|objfile| find_source(objfile)} do |t|
puts “Building object file for #{t.source}”
sh “#{COMPILER} #{C_OPTS} #{C_OBJ_DIR} #{C_INC_PATHS} #{C_FLAGS}
#{C_TARGET} #{t.source}”
end
The execution of the above rule never echoes the command following “sh”.
Why is that? Is there another shell command I should be using? I realize
that I could just precede everything with a puts of the same line, but
it seems like I am missing something.
Thanks.