1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/extmk.rb.in (create_makefile): create def file only if

it does not yet exist.
* lib/mkmf.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2001-04-03 01:16:14 +00:00
parent 57ca9e547b
commit e2de605439
3 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,10 @@
Tue Apr 3 09:56:20 2001 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/extmk.rb.in (create_makefile): create def file only if
it does not yet exist.
* lib/mkmf.rb: ditto.
Mon Apr 2 14:25:49 2001 Shugo Maeda <shugo@ruby-lang.org>
* lib/monitor.rb (wait): ensure reentrance.

View file

@ -381,8 +381,10 @@ def create_makefile(target)
defflag = ''
if RUBY_PLATFORM =~ /cygwin|mingw/ and not $static
open(target + '.def', 'wb') do |f|
f.print "EXPORTS\n", "Init_", target, "\n"
if not File.exist? target + '.def'
open(target + '.def', 'wb') do |f|
f.print "EXPORTS\n", "Init_", target, "\n"
end
end
defflag = "--def=" + target + ".def"
end

View file

@ -380,8 +380,10 @@ def create_makefile(target, srcdir = File.dirname($0))
defflag = ''
if RUBY_PLATFORM =~ /cygwin|mingw/
open(target + '.def', 'wb') do |f|
f.print "EXPORTS\n", "Init_", target, "\n"
if not File.exist? target + '.def'
open(target + '.def', 'wb') do |f|
f.print "EXPORTS\n", "Init_", target, "\n"
end
end
defflag = "--def=" + target + ".def"
end