summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-09 05:05:15 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-09 05:05:15 +0000
commita62d6e64bf1da39f529396fd06a9dd1f1526c90f (patch)
tree54adc3438ae47c3eb7774994cb1e2402f1a91919 /tool
parentf67c1b0a123489a1b62955514f8cd6d4c7a3efa0 (diff)
* tool/make-snapshot: Fix order of priority for option parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 81f4cb0658..962ac07d9d 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -251,7 +251,7 @@ def package(rev, destdir)
["gzip tarball", ".tar.gz", %w"tar czf"],
["zip archive", ".zip", %w"zip -qr"]
].collect do |mesg, ext, cmd|
- file = File.join(destdir, "#{v||$archname}#{ext}")
+ file = File.join(destdir, "#{$archname||v}#{ext}")
print "creating #{mesg}... #{file}"
if system(*(cmd + [file, v]))
puts " done"