mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/make-snapshot (usage): add usage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c40c2839d6
commit
b7bc826b9e
2 changed files with 20 additions and 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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue