1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* instruby.rb: expand source library path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-07-05 14:45:33 +00:00
parent 30be8467ce
commit 4510093e73
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Tue Jul 5 23:44:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* instruby.rb: expand source library path.
Tue Jul 5 23:27:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> Tue Jul 5 23:27:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (sort_2): get rid of yet another bcc's bug. * array.c (sort_2): get rid of yet another bcc's bug.

View file

@ -4,7 +4,7 @@ load "./rbconfig.rb"
include Config include Config
srcdir = File.dirname(__FILE__) srcdir = File.dirname(__FILE__)
$:.unshift File.join(srcdir, "lib") $:.unshift File.expand_path("lib", srcdir)
require 'fileutils' require 'fileutils'
require 'shellwords' require 'shellwords'
require 'optparse' require 'optparse'
@ -82,7 +82,7 @@ def makedirs(dirs)
end end
def with_destdir(dir) def with_destdir(dir)
return dir if $destdir.empty? return dir if !$destdir or $destdir.empty?
dir = dir.sub(/\A\w:/, '') if File::PATH_SEPARATOR == ';' dir = dir.sub(/\A\w:/, '') if File::PATH_SEPARATOR == ';'
$destdir + dir $destdir + dir
end end