diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-08 02:09:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-08 02:09:30 +0000 |
commit | cc9a5a40898cf1ef8b9c22ba932bdb5f6b2cf006 (patch) | |
tree | 9fb2884530a4a94271e821bd07474d0734d4cdaa /tool | |
parent | b3cd19971b5ffd729af3ac27c7dc31fccd4d705e (diff) | |
download | ruby-cc9a5a40898cf1ef8b9c22ba932bdb5f6b2cf006.tar.gz |
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
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/make-snapshot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index eafd2a0cb6..eaf5ddd05f 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -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" |