From 4bc1c36c3e5bfaf2c886dee58d8d80382b92a110 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 19 Feb 2009 05:18:27 +0000 Subject: * lib/mkmf.rb (create_makefile): removes directories in the depth order. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++- lib/mkmf.rb | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7262c7064..c9c9e10a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,11 @@ -Thu Feb 19 14:14:28 2009 Nobuyoshi Nakada +Thu Feb 19 14:18:25 2009 Nobuyoshi Nakada * lib/mkmf.rb (create_makefile): creates target directories before copying. [ruby-core:21958] + * lib/mkmf.rb (create_makefile): removes directories in the depth + order. + Thu Feb 19 13:56:00 2009 Nobuyoshi Nakada * file.c (rb_home_dir): checks if HAVE_PWD_H. [ruby-dev:38049] diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 40b0c2f58..6e936c767 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1720,10 +1720,9 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""} end if $extout dirs.uniq! - dirs.reverse! unless dirs.empty? mfile.print("clean-rb#{sfx}::\n") - for dir in dirs + for dir in dirs.sort_by {|dir| -dir.count('/')} mfile.print("\t@-$(RMDIRS) #{fseprepl[dir]}\n") end end -- cgit