mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/extmk.rb.in, lib/mkmf.rb: print command line in xsystem()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
970b618e64
commit
3f9fd4191b
2 changed files with 3 additions and 1 deletions
|
@ -82,6 +82,7 @@ def xsystem command
|
|||
end
|
||||
$stderr.reopen($log)
|
||||
$stdout.reopen($log)
|
||||
puts command
|
||||
r = system(command)
|
||||
$stderr.reopen($orgerr)
|
||||
$stdout.reopen($orgout)
|
||||
|
|
|
@ -58,11 +58,12 @@ $orgout = $stdout.dup
|
|||
def xsystem command
|
||||
Config.expand(command)
|
||||
if $DEBUG
|
||||
print command, "\n"
|
||||
puts command
|
||||
return system(command)
|
||||
end
|
||||
$stderr.reopen($log)
|
||||
$stdout.reopen($log)
|
||||
puts command
|
||||
r = system(command)
|
||||
$stderr.reopen($orgerr)
|
||||
$stdout.reopen($orgout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue