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

ruby-changes:17057

From: nobu <ko1@a...>
Date: Thu, 19 Aug 2010 22:45:15 +0900 (JST)
Subject: [ruby-changes:17057] Ruby:r29055 (trunk): * tool/make-snapshot (usage): add usage.

nobu	2010-08-19 22:45:02 +0900 (Thu, 19 Aug 2010)

  New Revision: 29055

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29055

  Log:
    * tool/make-snapshot (usage): add usage.

  Modified files:
    trunk/ChangeLog
    trunk/tool/make-snapshot

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29054)
+++ ChangeLog	(revision 29055)
@@ -1,5 +1,7 @@
-Thu Aug 19 22:34:32 2010  Nobuyoshi Nakada  <nobu@r...>
+Thu Aug 19 22:44:56 2010  Nobuyoshi Nakada  <nobu@r...>
 
+	* tool/make-snapshot (usage): add usage.
+
 	* tool/make-snapshot (package): accept revision as BRANCH@REV.
 
 Thu Aug 19 19:53:26 2010  Tanaka Akira  <akr@f...>
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 29054)
+++ tool/make-snapshot	(revision 29055)
@@ -9,7 +9,19 @@
 
 $exported = nil if $exported == ""
 $archname = nil if $archname == ""
+$keep_temp ||= nil
+$patch_file ||= nil
 
+def usage
+  <<USAGE
+usage: #{File.basename $0} [option...] new-directory-to-save [version ...]
+  -exported=PATH        make snapshot from already exported working directory
+  -archname=NAME        make the basename of snapshots NAME
+  -keep_temp            keep temporary working directory
+  -patch_file=PATCH     apply PATCH file after export
+USAGE
+end
+
 ENV["LC_ALL"] = ENV["LANG"] = "C"
 SVNURL = URI.parse("http://svn.ruby-lang.org/repos/ruby/")
 RUBY_VERSION_PATTERN = /^\#define\s+RUBY_VERSION\s+"([\d.]+)"/
@@ -53,8 +65,12 @@
   end
 end
 
+if $help or $_help
+  puts usage
+  exit
+end
 unless destdir = ARGV.shift
-  abort "usage: #{File.basename $0} new-directory-to-save [version ...]"
+  abort usage
 end
 revisions = ARGV.empty? ? ["trunk"] : ARGV
 unless tmp = $exported

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

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