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

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
This commit is contained in:
nobu 2016-11-10 03:50:46 +00:00
parent aaf3f205e8
commit d0f02c7fd1

View file

@ -209,7 +209,7 @@ def package(vcs, rev, destdir, tmp = nil)
if !File.directory?(v) if !File.directory?(v)
v = Dir.glob("ruby-*").select(&File.method(:directory?)) 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] v = v[0]
end end
@ -218,7 +218,7 @@ def package(vcs, rev, destdir, tmp = nil)
open(last_ChangeLog) do |f| open(last_ChangeLog) do |f|
f.readline f.readline
unless /\Ar(\d+) / =~ 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 end
vcs.export_changelog($1.to_i, revision.to_i, "#{v}/ChangeLog") vcs.export_changelog($1.to_i, revision.to_i, "#{v}/ChangeLog")
end end