diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/extmk.rb.in | 10 |
2 files changed, 8 insertions, 6 deletions
@@ -1,3 +1,7 @@ +Mon Jul 29 16:00:54 2002 WATANABE Hirofumi <eban@ruby-lang.org> + + * ext/extmk.rb.in: always use File.expand_path for $top_srcdir. + Sat Jul 27 23:07:52 2002 Yukihiro Matsumoto <matz@ruby-lang.org> * numeric.c (num_to_int): default to_int implementaion for every diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 71614c8b83..ab1b78a4cd 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -27,11 +27,9 @@ $extlist = [] $libdir = "@libdir@" -$top_srcdir = "@top_srcdir@" -if $top_srcdir !~ ("^" + File::SEPARATOR) - # get absolute path - $top_srcdir = File.expand_path($top_srcdir) -end +# get absolute path +$top_srcdir = File.expand_path("@top_srcdir@") + # get absolute path $topdir = File.expand_path("..") @@ -539,7 +537,7 @@ EOS mfile.printf "\n" unless /mswin32/ =~ RUBY_PLATFORM - if /bccwin32/=~ RUBY_PLATFORM + if /bccwin32/ =~ RUBY_PLATFORM src = '$(<:\\=/)' else src = '$<' |