diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-23 08:28:49 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-23 08:28:49 +0000 |
commit | dac591d01b0f6f85003b0268119da1d3df8527b5 (patch) | |
tree | c1614603c4105e7c497b162595f489c2a444a62a /ext/tk/extconf.rb | |
parent | 87487a8c8ae89455b897c4ee16db461cd1490f03 (diff) | |
download | ruby-dac591d01b0f6f85003b0268119da1d3df8527b5.tar.gz |
* ext/tk/extconf.rb: should not create "config_list" in a $srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/extconf.rb')
-rw-r--r-- | ext/tk/extconf.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/tk/extconf.rb b/ext/tk/extconf.rb index 6a9befd121..c511a20fc7 100644 --- a/ext/tk/extconf.rb +++ b/ext/tk/extconf.rb @@ -1,6 +1,6 @@ ############################################################## # extconf.rb for tcltklib -# release date: 2009-07-15 +# release date: 2009-07-23 ############################################################## require 'mkmf' @@ -22,8 +22,8 @@ end # check configs ############################################################## $cleanfiles << 'config_list' -config_list_file = File.join(File.dirname(__FILE__),'config_list') -config_list_file_source = config_list_file + '.in' +config_list_file = 'config_list' +config_list_file_source = File.join(File.dirname(__FILE__),'config_list.in') if !File.exist?(config_list_file) || File.ctime(config_list_file_source) > File.ctime(config_list_file) old_config_list_file = config_list_file_source @@ -84,13 +84,12 @@ end if update_flag puts "Configure options for Ruby/Tk may be updated." puts "So, delete files which depend on old configs." - File.delete(*(Dir.glob(File.join(File.dirname(__FILE__), - "*.#{CONFIG['DLEXT']}")))) - File.delete(*(Dir.glob(File.join(File.dirname(__FILE__), "*.#{$OBJEXT}")))) - File.delete(File.join(File.dirname(__FILE__), 'Makefile')) rescue nil + File.delete(*Dir.glob("*.#{CONFIG['DLEXT']}")) + File.delete(*Dir.glob("*.#{$OBJEXT}")) + File.delete('Makefile') rescue nil else - makefile = File.join(File.dirname(__FILE__),'Makefile') + makefile = 'Makefile' if File.exist?(makefile) && File.ctime(config_list_file) > File.ctime(makefile) # no need to update Makefile @@ -98,6 +97,7 @@ else end end + ############################################################## # fuctions ############################################################## |