[前][次][番号順一覧][スレッド一覧]

ruby-changes:44614

From: nobu <ko1@a...>
Date: Thu, 10 Nov 2016 12:50:51 +0900 (JST)
Subject: [ruby-changes:44614] nobu:r56687 (trunk): make-snapshot: program name

nobu	2016-11-10 12:50:46 +0900 (Thu, 10 Nov 2016)

  New Revision: 56687

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56687

  Log:
    make-snapshot: program name
    
    * tool/make-snapshot (package): abort with the basename of this
      script.

  Modified files:
    trunk/tool/make-snapshot
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 56686)
+++ tool/make-snapshot	(revision 56687)
@@ -209,7 +209,7 @@ def package(vcs, rev, destdir, tmp = nil https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L209
 
   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 https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L218
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]