diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-19 13:45:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-19 13:45:02 +0000 |
commit | b7bc826b9ebd2898f94a35251d1fb4bde771a8f6 (patch) | |
tree | bf1d18272c15b363985f2c4fd64f49c4f91115bb /tool/make-snapshot | |
parent | c40c2839d6f488f25d00fceca4b3fd8f9e3073f8 (diff) |
* tool/make-snapshot (usage): add usage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index 06b24ce4f9..b20dabdf4b 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -9,6 +9,18 @@ STDOUT.sync = true $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/") @@ -53,8 +65,12 @@ path = ENV["PATH"].split(File::PATH_SEPARATOR) 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 |