summaryrefslogtreecommitdiff
path: root/ext/extmk.rb.in
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-29 07:06:34 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-29 07:06:34 +0000
commite38f8b5cdc74d96585965bb3e598978ca560a636 (patch)
tree84ab987f7ff8acc2573aab1eb1155bc9ecf45e42 /ext/extmk.rb.in
parentff954d7e17387de34f2d129d857add9d51fecaec (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/extmk.rb.in')
-rw-r--r--ext/extmk.rb.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 71614c8..ab1b78a 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 = '$<'