summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-19 13:45:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-19 13:45:02 +0000
commitb7bc826b9ebd2898f94a35251d1fb4bde771a8f6 (patch)
treebf1d18272c15b363985f2c4fd64f49c4f91115bb /tool
parentc40c2839d6f488f25d00fceca4b3fd8f9e3073f8 (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')
-rwxr-xr-xtool/make-snapshot18
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