1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
nobu 2013-02-08 02:09:30 +00:00
parent b3cd19971b
commit cc9a5a4089

View file

@ -244,7 +244,7 @@ def package(rev, destdir)
["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"