ruby-changes:27099
From: nobu <ko1@a...>
Date: Fri, 8 Feb 2013 11:34:05 +0900 (JST)
Subject: [ruby-changes:27099] nobu:r39151 (trunk): make-snapshot: File.join
nobu 2013-02-08 11:09:30 +0900 (Fri, 08 Feb 2013) New Revision: 39151 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39151 Log: make-snapshot: File.join * tool/make-snapshot (package): use File.join to get rid of continuous slashes. Modified files: trunk/tool/make-snapshot Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 39150) +++ tool/make-snapshot (revision 39151) @@ -244,7 +244,7 @@ def package(rev, destdir) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L244 ["gzip tarball", ".tar.gz", %w"tar czf"], ["zip archive", ".zip", %w"zip -qr"] ].collect do |mesg, ext, cmd| - file = "#{destdir}/#{v||$archname}#{ext}" + file = File.join(destdir, "#{v||$archname}#{ext}") print "creating #{mesg}... #{file}" if system(*(cmd + [file, v])) puts " done" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/