diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-05 14:45:33 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-05 14:45:33 +0000 |
| commit | e58338ff050e9ce9d1f6b69e2244c371eb67ac16 (patch) | |
| tree | d0621c98ae92756505fa10916b6262103631a595 | |
| parent | 863d48850a07bfef3f2e3744bd8d4a3fa274289f (diff) | |
| download | ruby-e58338ff050e9ce9d1f6b69e2244c371eb67ac16.tar.gz ruby-e58338ff050e9ce9d1f6b69e2244c371eb67ac16.tar.xz ruby-e58338ff050e9ce9d1f6b69e2244c371eb67ac16.zip | |
* instruby.rb: expand source library path.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | instruby.rb | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -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> * array.c (sort_2): get rid of yet another bcc's bug. diff --git a/instruby.rb b/instruby.rb index f1225a470..be011d46a 100644 --- a/instruby.rb +++ b/instruby.rb @@ -4,7 +4,7 @@ load "./rbconfig.rb" include Config srcdir = File.dirname(__FILE__) -$:.unshift File.join(srcdir, "lib") +$:.unshift File.expand_path("lib", srcdir) require 'fileutils' require 'shellwords' require 'optparse' @@ -82,7 +82,7 @@ def makedirs(dirs) end 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 == ';' $destdir + dir end |
