summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-05 04:54:52 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-05 04:54:52 +0000
commit21524a3fc00d0e894d0ca0b8fcb7d9c7413c5917 (patch)
treea915c1e128bf3c908a60c9ba6a96d55ce709522b /ext
parentac376af4f42ca83fc178a0f8911f542e1bc5e8f1 (diff)
* ext/extmk.rb.in, lib/mkmf.rb (xsystem): write log file.
print command line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb.in13
1 files changed, 4 insertions, 9 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index bb50e88cfd..388edd0d66 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -71,13 +71,7 @@ end
LINK = "@CC@ -o conftest -I#$topdir -I#$top_srcdir #{CFLAGS} -I#$includedir @LDFLAGS@ %s %s %s conftest.c %s %s @LIBS@"
CPP = "@CPP@ @CPPFLAGS@ -I#$topdir -I#$top_srcdir #{CFLAGS} -I#$includedir %s %s %s conftest.c"
-if FileTest.readable? 'nul'
- $null = open('nul', 'w')
-elsif FileTest.readable? '/dev/null'
- $null = open('/dev/null', 'w')
-else
- $null = open('test.log', 'w')
-end
+$log = open('extmk.log', 'w')
$orgerr = $stderr.dup
$orgout = $stdout.dup
@@ -86,8 +80,9 @@ def xsystem command
puts command
return system(command)
end
- $stderr.reopen($null)
- $stdout.reopen($null)
+ $stderr.reopen($log)
+ $stdout.reopen($log)
+ puts command
r = system(command)
$stderr.reopen($orgerr)
$stdout.reopen($orgout)