ruby-changes:61714
From: David <ko1@a...>
Date: Mon, 15 Jun 2020 12:37:59 +0900 (JST)
Subject: [ruby-changes:61714] f5f6415f26 (master): A help message to `tool/sync_default_gems.rb`
https://git.ruby-lang.org/ruby.git/commit/?id=f5f6415f26 From f5f6415f264400e44888afb9335f76bd46e3f69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Sun, 14 Jun 2020 13:10:58 +0200 Subject: A help message to `tool/sync_default_gems.rb` diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index cf03d58..4605bf9 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -1,13 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L1 # sync following repositories to ruby repository # -# Usage: -# git clone from the upstream repository and copy from the upstream repository with cp -rf. It's lost the git commits. -# $ ruby tool/sync_default_gems.rb rubygems -# pick the single commit from the upstream repository. -# $ ruby tool/sync_default_gems.rb rubygems 97e9768612 -# pick the commits range from the upstream repository -# $ ruby tool/sync_default_gems.rb rubygems 97e9768612..9e53702832 -# # * https://github.com/rubygems/rubygems # * https://github.com/ruby/rdoc # * https://github.com/ruby/reline @@ -466,6 +458,21 @@ when "up" https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L458 end when "all" $repositories.keys.each{|gem| sync_default_gems(gem.to_s)} +when nil, "-h", "--help" + puts <<-HELP +\e[1mSync with upstream code of default libraries\e[0m + +\e[1mImport a default library through `git clone` and `cp -rf` (git commits are lost)\e[0m + ruby #$0 rubygems + +\e[1mPick a single commit from the upstream repository\e[0m + ruby #$0 rubygems 97e9768612 + +\e[1mPick a commit range from the upstream repository\e[0m + ruby #$0 rubygems 97e9768612..9e53702832 + HELP + + exit else if ARGV[1] sync_default_gems_with_commits(ARGV[0], ARGV[1]) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/