summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-03 05:47:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-03 05:47:31 +0000
commitcf08cf97facf9e07e9382abfb140fcbe029f7512 (patch)
treefb820441153c11d1faa2a70638beaf80b65c9ed4 /tool/make-snapshot
parent9b16f906922fcb63a35c41b57bcec91f5791ad66 (diff)
* tool/make-snapshot (package): no teeny means a branch since 2.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 9fb3842..f68a9e4 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -140,8 +140,8 @@ def package(rev, destdir)
patchlevel = true
tag = "p#{$4}"
url = SVNURL + "tags/v#{$1}_#{$2}_#{$3}_#{$4}"
- when /\A(\d+)\.(\d+)\.(\d+)\z/
- if $1 > "2" || $1 == "2" && $2 >= "1"
+ when /\A(\d+)\.(\d+)(?:\.(\d+))?\z/
+ if $3 && ($1 > "2" || $1 == "2" && $2 >= "1")
patchlevel = true
tag = ""
url = SVNURL + "tags/v#{$1}_#{$2}_#{$3}"