diff options
Diffstat (limited to 'instruby.rb')
-rw-r--r-- | instruby.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/instruby.rb b/instruby.rb index 1db08a31f4..be011d46ab 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' @@ -66,7 +66,7 @@ end def install(src, dest, options = {}) options[:preserve] = true - super src, dest, options + super end $made_dirs = {} @@ -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 |