make-snapshot: File.join
* tool/make-snapshot (package): use File.join to get rid of continuous slashes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b3cd19971b
commit
cc9a5a4089
@ -244,7 +244,7 @@ def package(rev, destdir)
|
|||||||
["gzip tarball", ".tar.gz", %w"tar czf"],
|
["gzip tarball", ".tar.gz", %w"tar czf"],
|
||||||
["zip archive", ".zip", %w"zip -qr"]
|
["zip archive", ".zip", %w"zip -qr"]
|
||||||
].collect do |mesg, ext, cmd|
|
].collect do |mesg, ext, cmd|
|
||||||
file = "#{destdir}/#{v||$archname}#{ext}"
|
file = File.join(destdir, "#{v||$archname}#{ext}")
|
||||||
print "creating #{mesg}... #{file}"
|
print "creating #{mesg}... #{file}"
|
||||||
if system(*(cmd + [file, v]))
|
if system(*(cmd + [file, v]))
|
||||||
puts " done"
|
puts " done"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user