From 61deeb37417b040e93cb258e58d1a5777055842b 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/trunk@5830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ instruby.rb | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fadedefe75..9228c748cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Wed Feb 25 21:16:10 2004 Nobuyoshi Nakada + + * instruby.rb (with_destdir): should return the given argument if no + DESTDIR is given. + + * instruby.rb: use path name expansion of cmd.exe. + Wed Feb 25 20:44:45 2004 Nobuyoshi Nakada * lib/cgi-lib.rb, lib/getopts.rb, lib/importenv.rb, lib/parsearg.rb: diff --git a/instruby.rb b/instruby.rb index e9f6f0aca0..146bb2d4f3 100644 --- a/instruby.rb +++ b/instruby.rb @@ -74,6 +74,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 @@ -157,11 +158,11 @@ for src in Dir["bin/*"] open(with_destdir(batfile), "w") { |b| b.print <