diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | tool/make-snapshot | 18 |
2 files changed, 20 insertions, 2 deletions
@@ -1,4 +1,6 @@ -Thu Aug 19 22:34:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> +Thu Aug 19 22:44:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * tool/make-snapshot (usage): add usage. * tool/make-snapshot (package): accept revision as BRANCH@REV. 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 |