mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4667f459cf
commit
ec1a89eeb7
2 changed files with 9 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
Thu Sep 21 19:04:34 2000 WATANABE Hirofumi <eban@os.rim.or.jp>
|
Thu Sep 21 19:04:34 2000 WATANABE Hirofumi <eban@os.rim.or.jp>
|
||||||
|
|
||||||
* ext/extmk.rb (install_rb): check whether libdir is directory or not.
|
* ext/extmk.rb, lib/mkmf.rb (install_rb): check whether libdir is
|
||||||
|
directory or not.
|
||||||
|
|
||||||
Thu Sep 21 17:23:05 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Sep 21 17:23:05 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
|
|
@ -129,12 +129,14 @@ def install_rb(mfile, dest, srcdir = nil)
|
||||||
libdir = srcdir + "/" + libdir if srcdir
|
libdir = srcdir + "/" + libdir if srcdir
|
||||||
path = []
|
path = []
|
||||||
dir = []
|
dir = []
|
||||||
|
if File.directory? libdir
|
||||||
Find.find(libdir) do |f|
|
Find.find(libdir) do |f|
|
||||||
next unless /\.rb$/ =~ f
|
next unless /\.rb$/ =~ f
|
||||||
f = f[libdir.length+1..-1]
|
f = f[libdir.length+1..-1]
|
||||||
path.push f
|
path.push f
|
||||||
dir |= File.dirname(f)
|
dir |= File.dirname(f)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
for f in dir
|
for f in dir
|
||||||
next if f == "."
|
next if f == "."
|
||||||
mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' %s/%s\n", dest, f
|
mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' %s/%s\n", dest, f
|
||||||
|
|
Loading…
Add table
Reference in a new issue