mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mkmf.rb: files[0,1] == "." -> files[0,2] == "./"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
46a7493b6c
commit
edf4c88f79
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ def install_files(mfile, ifiles, map = INSTALL_DIRS, srcprefix = nil)
|
|||
ifiles.each do |files, dir, prefix|
|
||||
dir = map.inject(dir) {|dir, (orig, new)| dir.gsub(orig, new)} if map
|
||||
prefix = %r"\A#{Regexp.quote(prefix)}/" if prefix
|
||||
if( files[0,1] == "." )
|
||||
if( files[0,2] == "./" )
|
||||
# install files which are in current working directory.
|
||||
Dir.glob(files) do |f|
|
||||
d = File.dirname(f)
|
||||
|
|
Loading…
Reference in a new issue