summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-10 03:50:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-10 03:50:46 +0000
commitd0f02c7fd15695742af227dede09fad311ed4219 (patch)
tree5cd7a22ae532418c9e8981ff4b09cb3bc76e6428
parentaaf3f205e893923c86e02b88c0ac477884ef7920 (diff)
downloadruby-d0f02c7fd15695742af227dede09fad311ed4219.tar.gz
make-snapshot: program name
* tool/make-snapshot (package): abort with the basename of this script. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xtool/make-snapshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index d2f92f53c6..1e35d37d2f 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -209,7 +209,7 @@ def package(vcs, rev, destdir, tmp = nil)
if !File.directory?(v)
v = Dir.glob("ruby-*").select(&File.method(:directory?))
- v.size == 1 or abort "not exported"
+ v.size == 1 or abort "#{File.basename $0}: not exported"
v = v[0]
end
@@ -218,7 +218,7 @@ def package(vcs, rev, destdir, tmp = nil)
open(last_ChangeLog) do |f|
f.readline
unless /\Ar(\d+) / =~ f.readline
- abort "Cannot find revision from '#{last_ChangeLog}'"
+ abort "#{File.basename $0}: Cannot find revision from '#{last_ChangeLog}'"
end
vcs.export_changelog($1.to_i, revision.to_i, "#{v}/ChangeLog")
end