diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-07-29 07:06:34 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-07-29 07:06:34 +0000 |
commit | e38f8b5cdc74d96585965bb3e598978ca560a636 (patch) | |
tree | 84ab987f7ff8acc2573aab1eb1155bc9ecf45e42 /ext | |
parent | ff954d7e17387de34f2d129d857add9d51fecaec (diff) |
* ext/extmk.rb.in: always use File.expand_path for $top_srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/extmk.rb.in | 10 |
1 files changed, 4 insertions, 6 deletions
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 = '$<' |