From 143b0bf1f486a1f1709bb3f4df05acb31cc5fbac Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 29 Jul 2002 07:06:34 +0000 Subject: * ext/extmk.rb.in: always use File.expand_path for $top_srcdir. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ext') diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 71614c8b8..ab1b78a4c 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 = '$<' -- cgit