From 0313f4cee5312ac16fe5cd671e0014903fff2bad Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 25 Feb 2004 12:16:30 +0000 Subject: * instruby.rb (with_destdir): should return the given argument if no DESTDIR is given. * instruby.rb: use path name expansion of cmd.exe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- instruby.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'instruby.rb') diff --git a/instruby.rb b/instruby.rb index 3eb8fcea72..a9d66c7670 100644 --- a/instruby.rb +++ b/instruby.rb @@ -72,6 +72,7 @@ def makedirs(dirs) end def with_destdir(dir) + return dir if $destdir.empty? dir = dir.sub(/\A\w:/, '') if File::PATH_SEPARATOR == ';' $destdir + dir end @@ -155,11 +156,11 @@ for src in Dir["bin/*"] open(with_destdir(batfile), "w") { |b| b.print <