mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mkmf.rb: use File::split to split a target into a prefix and
a module name. This also works around a just found bug of String#rindex. * ext/extmk.rb.in: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c4ef00b158
commit
c0a9b71aeb
3 changed files with 14 additions and 6 deletions
|
@ -1,3 +1,11 @@
|
|||
Fri Jul 13 22:26:09 2001 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* lib/mkmf.rb: use File::split to split a target into a prefix and
|
||||
a module name. This also works around a just found bug of
|
||||
String#rindex.
|
||||
|
||||
* ext/extmk.rb.in: ditto.
|
||||
|
||||
Thu Jul 12 15:11:48 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (ruby_connect): workaround for the setup of
|
||||
|
|
|
@ -362,9 +362,9 @@ end
|
|||
|
||||
def create_makefile(target)
|
||||
$target = target
|
||||
if target.rindex(%r!/!)
|
||||
target = $'
|
||||
target_prefix = "/"+$`
|
||||
if target.include?('/')
|
||||
target_prefix, target = File.split(target)
|
||||
target_prefix[0,0] = '/'
|
||||
else
|
||||
target_prefix = ""
|
||||
end
|
||||
|
|
|
@ -367,9 +367,9 @@ def create_makefile(target, srcdir = File.dirname($0))
|
|||
print "creating Makefile\n"
|
||||
rm_f "conftest*"
|
||||
STDOUT.flush
|
||||
if target.rindex(%r!/!) #/
|
||||
target = $'
|
||||
target_prefix = "/"+$`
|
||||
if target.include?('/')
|
||||
target_prefix, target = File.split(target)
|
||||
target_prefix[0,0] = '/'
|
||||
else
|
||||
target_prefix = ""
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue