From: Masahiro S. <sa...@us...> - 2003-08-30 13:22:44
|
Update of /cvsroot/ruby-gnome2/ruby-gnome2/gtk In directory sc8-pr-cvs1:/tmp/cvs-serv8896 Modified Files: ChangeLog extconf.rb Log Message: remove nasty hack by using Dir.entries. Index: ChangeLog =================================================================== RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/gtk/ChangeLog,v retrieving revision 1.295 retrieving revision 1.296 diff -u -d -r1.295 -r1.296 --- ChangeLog 29 Aug 2003 19:14:53 -0000 1.295 +++ ChangeLog 30 Aug 2003 13:22:40 -0000 1.296 @@ -1,3 +1,7 @@ +2003-08-30 Masahiro Sakai <sa...@to...> + + * extconf.rb: remove nasty hack by using Dir.entries. + 2003-08-30 Masao Mutoh <mu...@hi...> * src/rbgdk.c, rbgdkcursor.c, rbgdkregion.c, rbgdkgc.c, rbgdkrgb.c, Index: extconf.rb =================================================================== RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/gtk/extconf.rb,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- extconf.rb 27 Aug 2003 17:48:05 -0000 1.42 +++ extconf.rb 30 Aug 2003 13:22:40 -0000 1.43 @@ -77,10 +77,7 @@ File.delete("rbgtkinits.c") if FileTest.exist?("rbgtkinits.c") $libs = $libs.split(/\s/).uniq.join(' ') - $source_files = Dir.glob("#{src_dir}/*.c").map{|fname| - fname[0, src_dir.length+1] = '' - fname - } + $source_files = Dir.entries(src_dir).select{|fname| /\.c$/ =~ fname } $objs = $source_files.collect do |item| item.gsub(/\.c$/, obj_ext) end |