summaryrefslogtreecommitdiff
path: root/bcc32
diff options
context:
space:
mode:
Diffstat (limited to 'bcc32')
-rw-r--r--bcc32/mkexports.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/bcc32/mkexports.rb b/bcc32/mkexports.rb
index 531ba3a001..e34b441e2f 100644
--- a/bcc32/mkexports.rb
+++ b/bcc32/mkexports.rb
@@ -1,14 +1,13 @@
#!./miniruby -s
SYM = {}
-objs = ARGV.collect {|s| s.tr('/', '\\')}
-system("tdump -oiPUBDEF -oiPUBD32 #{objs.join(' ')} > pub.def")
-sleep(1)
-IO.foreach('pub.def'){|l|
- next unless /(PUBDEF|PUBD32)/ =~ l
- /'(.*?)'/ =~ l
- SYM[$1] = true
-}
+STDIN.reopen(open("nul"))
+ARGV.each do |obj|
+ IO.foreach("|tdump -q -oiPUBDEF -oiPUBD32 #{obj.tr('/', '\\')}") do |l|
+ next unless /(?:PUBDEF|PUBD32)/ =~ l
+ SYM[$1] = true if /'(.*?)'/ =~ l
+ end
+end
exports = []
if $name