ruby-changes:10861
From: nobu <ko1@a...>
Date: Thu, 19 Feb 2009 14:22:40 +0900 (JST)
Subject: [ruby-changes:10861] Ruby:r22432 (trunk): * lib/mkmf.rb (create_makefile): removes directories in the depth
nobu 2009-02-19 14:18:27 +0900 (Thu, 19 Feb 2009) New Revision: 22432 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22432 Log: * lib/mkmf.rb (create_makefile): removes directories in the depth order. Modified files: trunk/ChangeLog trunk/lib/mkmf.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 22431) +++ ChangeLog (revision 22432) @@ -1,8 +1,11 @@ -Thu Feb 19 14:14:28 2009 Nobuyoshi Nakada <nobu@r...> +Thu Feb 19 14:18:25 2009 Nobuyoshi Nakada <nobu@r...> * 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 <nobu@r...> * file.c (rb_home_dir): checks if HAVE_PWD_H. [ruby-dev:38049] Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 22431) +++ lib/mkmf.rb (revision 22432) @@ -1720,10 +1720,9 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/