From: Masahiro S. <sa...@us...> - 2003-08-30 13:46:22
|
Update of /cvsroot/ruby-gnome2/ruby-gnome2/gnome In directory sc8-pr-cvs1:/tmp/cvs-serv12107/gnome Modified Files: ChangeLog extconf.rb Log Message: remove nasty hack by using Dir.entries. Index: ChangeLog =================================================================== RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/gnome/ChangeLog,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- ChangeLog 27 Aug 2003 17:48:05 -0000 1.62 +++ ChangeLog 30 Aug 2003 13:46:19 -0000 1.63 @@ -1,3 +1,7 @@ +2003-08-30 Masahiro Sakai <sa...@to...> + + * extconf.rb: remove nasty hack by using Dir.entries. + 2003-08-28 Masao Mutoh <mu...@hi...> * extconf.rb: Exit with 1 when the package is not found. Index: extconf.rb =================================================================== RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/gnome/extconf.rb,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- extconf.rb 27 Aug 2003 17:48:05 -0000 1.16 +++ extconf.rb 30 Aug 2003 13:46:19 -0000 1.17 @@ -58,10 +58,7 @@ obj_ext = ".#{$OBJEXT}" $libs = $libs.split(/\s/).uniq.join(' ') - $source_files = Dir.glob("#{srcdir}/*.c").map{|fname| - fname[0, srcdir.length+1] = '' - fname - } + $source_files = Dir.entries(srcdir).select{|fname| /\.c$/ =~ fname } $objs = $source_files.collect do |item| item.gsub(/\.c$/, obj_ext) end |