1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tool: add descriptions and fix typos

* tool/asm_parse.rb: add description
* tool/change_maker.rb: ditto
* tool/downloader.rb: ditto
* tool/eval.rb: ditto
* tool/expand-config.rb: ditto
* tool/extlibs.rb: ditto
* tool/fake.rb: ditto
* tool/file2lastrev.rb: ditto
* tool/gem-unpack.rb: ditto
* tool/gen_dummy_probes.rb: ditto
* tool/gen_ruby_tapset.rb: ditto
* tool/generic_erb.rb: ditto
* tool/id2token.rb: ditto
* tool/ifchange: ditto
* tool/insns2vm.rb: ditto
* tool/instruction.rb: ditto
* tool/jisx0208.rb: ditto
* tool/merger.rb: ditto
* tool/mkrunnable.rb: ditto
* tool/node_name.rb: ditto
* tool/parse.rb: ditto
* tool/rbinstall.rb: ditto
* tool/rbuninstall.rb: ditto
* tool/rmdirs: ditto
* tool/runruby.rb: ditto
* tool/strip-rdoc.rb: ditto
* tool/vcs.rb: ditto
* tool/vtlh.rb: ditto
* tool/ytab.sed: ditto
* tool/enc-unicode.rb: fix typo
* tool/mk_call_iseq_optimized.rb: ditto
* tool/update-deps: ditto
  [ruby-core:76215] [Bug #12539]
  by Noah Gibbs <the.codefolio.guy@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2016-07-02 21:01:04 +00:00
parent 79f86a67d0
commit f8d0bdedf1
33 changed files with 118 additions and 5 deletions

View file

@ -1,3 +1,40 @@
Sun Jul 3 05:25:46 2016 Eric Wong <e@80x24.org>
* tool/asm_parse.rb: add description
* tool/change_maker.rb: ditto
* tool/downloader.rb: ditto
* tool/eval.rb: ditto
* tool/expand-config.rb: ditto
* tool/extlibs.rb: ditto
* tool/fake.rb: ditto
* tool/file2lastrev.rb: ditto
* tool/gem-unpack.rb: ditto
* tool/gen_dummy_probes.rb: ditto
* tool/gen_ruby_tapset.rb: ditto
* tool/generic_erb.rb: ditto
* tool/id2token.rb: ditto
* tool/ifchange: ditto
* tool/insns2vm.rb: ditto
* tool/instruction.rb: ditto
* tool/jisx0208.rb: ditto
* tool/merger.rb: ditto
* tool/mkrunnable.rb: ditto
* tool/node_name.rb: ditto
* tool/parse.rb: ditto
* tool/rbinstall.rb: ditto
* tool/rbuninstall.rb: ditto
* tool/rmdirs: ditto
* tool/runruby.rb: ditto
* tool/strip-rdoc.rb: ditto
* tool/vcs.rb: ditto
* tool/vtlh.rb: ditto
* tool/ytab.sed: ditto
* tool/enc-unicode.rb: fix typo
* tool/mk_call_iseq_optimized.rb: ditto
* tool/update-deps: ditto
[ruby-core:76215] [Bug #12539]
by Noah Gibbs <the.codefolio.guy@gmail.com>
Sat Jul 2 18:04:24 2016 NARUSE, Yui <naruse@ruby-lang.org> Sat Jul 2 18:04:24 2016 NARUSE, Yui <naruse@ruby-lang.org>
* lib/uri/mailto.rb (initialize): RFC3986_Parser#split sets opaque * lib/uri/mailto.rb (initialize): RFC3986_Parser#split sets opaque

View file

@ -1,3 +1,5 @@
# YARV tool to parse assembly output.
stat = {} stat = {}
while line = ARGF.gets while line = ARGF.gets

View file

@ -1,5 +1,8 @@
#! ./miniruby #! ./miniruby
# Used by "make change" to generate a list of files for a Changelog entry.
# Run it via "make change" in the Ruby root directory.
$:.unshift(File.expand_path("../../lib", __FILE__)) $:.unshift(File.expand_path("../../lib", __FILE__))
require File.expand_path("../vcs", __FILE__) require File.expand_path("../vcs", __FILE__)

View file

@ -1,3 +1,6 @@
# Used by configure and make to download or update mirrored Ruby and GCC
# files. This will use HTTPS if possible, falling back to HTTP.
require 'open-uri' require 'open-uri'
begin begin
require 'net/https' require 'net/https'

View file

@ -1,6 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# Creates the data structures needed by Onigurma to map Unicode codepoints to # Creates the data structures needed by Oniguruma to map Unicode codepoints to
# property names and POSIX character classes # property names and POSIX character classes
# #
# To use this, get UnicodeData.txt, Scripts.txt, PropList.txt, # To use this, get UnicodeData.txt, Scripts.txt, PropList.txt,

View file

@ -1,3 +1,4 @@
# VM checking and benchmarking code
require './rbconfig' require './rbconfig'
require 'fileutils' require 'fileutils'

View file

@ -1,5 +1,7 @@
#!./miniruby -s #!./miniruby -s
# Used to expand Ruby config entries for Win32 Makefiles.
config = File.read(conffile = $config) config = File.read(conffile = $config)
config.sub!(/^(\s*)RUBY_VERSION\b.*(\sor\s*)$/, '\1true\2') config.sub!(/^(\s*)RUBY_VERSION\b.*(\sor\s*)$/, '\1true\2')
rbconfig = Module.new {module_eval(config, conffile)}::RbConfig rbconfig = Module.new {module_eval(config, conffile)}::RbConfig

View file

@ -1,4 +1,8 @@
#!/usr/bin/ruby #!/usr/bin/ruby
# Used to download, extract and patch extension libraries (extlibs)
# for Ruby. See common.mk for Ruby's usage.
require 'fileutils' require 'fileutils'
require 'digest' require 'digest'
require_relative 'downloader' require_relative 'downloader'

View file

@ -1,3 +1,6 @@
# Used by Makefile and configure for building Ruby.
# See common.mk and Makefile.in for details.
class File class File
sep = ("\\" if RUBY_PLATFORM =~ /mswin|bccwin|mingw/) sep = ("\\" if RUBY_PLATFORM =~ /mswin|bccwin|mingw/)
if sep != ALT_SEPARATOR if sep != ALT_SEPARATOR

View file

@ -1,5 +1,8 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# Gets the most recent revision of a file in a VCS-agnostic way.
# Used by Doxygen, Makefiles and merger.rb.
require 'optparse' require 'optparse'
# this file run with BASERUBY, which may be older than 1.9, so no # this file run with BASERUBY, which may be older than 1.9, so no

View file

@ -1,6 +1,9 @@
require 'rubygems' require 'rubygems'
require 'rubygems/package' require 'rubygems/package'
# This library is used by "make extract-gems" to
# unpack bundled gem files.
def Gem.unpack(file, dir = nil) def Gem.unpack(file, dir = nil)
policy = Gem::Security::LowSecurity policy = Gem::Security::LowSecurity
(policy = policy.dup).ui = Gem::SilentUI.new (policy = policy.dup).ui = Gem::SilentUI.new

View file

@ -1,6 +1,9 @@
#!/usr/bin/ruby #!/usr/bin/ruby
# -*- coding: us-ascii -*- # -*- coding: us-ascii -*-
# Used to create dummy probes (as for systemtap and DTrace) by Makefiles.
# See common.mk.
text = ARGF.read text = ARGF.read
# remove comments # remove comments

View file

@ -1,5 +1,6 @@
#!/usr/bin/ruby #!/usr/bin/ruby
# -*- coding: us-ascii -*- # -*- coding: us-ascii -*-
# Create a tapset for systemtap and DTrace
# usage: ./ruby gen_ruby_tapset.rb --ruby-path=/path/to/ruby probes.d > output # usage: ./ruby gen_ruby_tapset.rb --ruby-path=/path/to/ruby probes.d > output
require "optparse" require "optparse"

View file

@ -1,4 +1,8 @@
# -*- coding: us-ascii -*- # -*- coding: us-ascii -*-
# Used to expand Ruby template files by common.mk, uncommon.mk and
# some Ruby extension libraries.
require 'erb' require 'erb'
require 'optparse' require 'optparse'
require 'fileutils' require 'fileutils'

View file

@ -1,5 +1,8 @@
#! /usr/bin/ruby -p #! /usr/bin/ruby -p
# -*- coding: us-ascii -*- # -*- coding: us-ascii -*-
# Used to build the Ruby parsing code in common.mk and Ripper.
BEGIN { BEGIN {
require 'optparse' require 'optparse'
$:.unshift(File.dirname(__FILE__)) $:.unshift(File.dirname(__FILE__))

View file

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
# usage: ifchange target temporary # usage: ifchange target temporary
# Used in generating revision.h via Makefiles.
set -e set -e
timestamp= timestamp=
keepsuffix= keepsuffix=

View file

@ -1,5 +1,8 @@
#!ruby #!ruby
# This is used by Makefile.in to generate .inc files.
# See Makefile.in for details.
require 'optparse' require 'optparse'
Version = %w$Revision: 11626 $[1..-1] Version = %w$Revision: 11626 $[1..-1]

View file

@ -1,7 +1,8 @@
#!./miniruby #!./miniruby
# -*- coding: us-ascii -*- # -*- coding: us-ascii -*-
# #
# # This library is used by insns2vm.rb as part of autogenerating
# instruction files with .inc extensions like insns.inc and vm.inc.
require 'erb' require 'erb'
$:.unshift(File.dirname(__FILE__)) $:.unshift(File.dirname(__FILE__))

View file

@ -1,3 +1,5 @@
# Library used by tools/enc-emoji-citrus-gen.rb
module JISX0208 module JISX0208
class Char class Char
class << self class << self

View file

@ -3,7 +3,8 @@
exec "${RUBY-ruby}" "-x" "$0" "$@" && [ ] if false exec "${RUBY-ruby}" "-x" "$0" "$@" && [ ] if false
#!ruby #!ruby
# This needs ruby 1.9 and subversion. # This needs ruby 1.9 and subversion.
# run this in a repository to commit. # As a Ruby committer, run this in an SVN repository
# to commit a change.
require 'fileutils' require 'fileutils'
require 'tempfile' require 'tempfile'

View file

@ -4,7 +4,7 @@ puts <<EOS
/* DO NOT EDIT THIS FILE DIRECTLY /* DO NOT EDIT THIS FILE DIRECTLY
* *
* This file is enerated by tool/mkcall_iseq.rb * This file is generated by tool/mkcall_iseq.rb
*/ */
EOS EOS

View file

@ -1,6 +1,9 @@
#!./miniruby #!./miniruby
# -*- coding: us-ascii -*- # -*- coding: us-ascii -*-
# Used by "make runnable" target, to make symbolic links from a build
# directory.
require './rbconfig' require './rbconfig'
require 'fileutils' require 'fileutils'

View file

@ -1,4 +1,8 @@
#! ./miniruby #! ./miniruby
# Used when making Ruby to generate node_name.inc.
# See common.mk for details.
while gets while gets
if ~/enum node_type \{/..~/^\};/ if ~/enum node_type \{/..~/^\};/
~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";") ~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";")

View file

@ -1,3 +1,6 @@
# Used as part of the "make parse" Makefile target.
# See common.mk for details.
$file = ARGV[0] $file = ARGV[0]
$str = ARGF.read.sub(/^__END__.*\z/m, '') $str = ARGF.read.sub(/^__END__.*\z/m, '')
puts '# ' + '-' * 70 puts '# ' + '-' * 70

View file

@ -1,5 +1,8 @@
#!./miniruby #!./miniruby
# Used by the "make install" target to install Ruby.
# See common.mk for more details.
begin begin
load "./rbconfig.rb" load "./rbconfig.rb"
rescue LoadError rescue LoadError

View file

@ -1,4 +1,8 @@
#! /usr/bin/ruby -nl #! /usr/bin/ruby -nl
# Used by the "make uninstall" target to uninstall Ruby.
# See common.mk for more details.
BEGIN { BEGIN {
$dryrun = false $dryrun = false
$tty = STDOUT.tty? $tty = STDOUT.tty?

View file

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
# Script used by configure to delete directories recursively.
for dir do for dir do
while rmdir "$dir" >/dev/null 2>&1 && while rmdir "$dir" >/dev/null 2>&1 &&
parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do

View file

@ -1,5 +1,8 @@
#!./miniruby #!./miniruby
# Used by "make runruby", configure, and by hand to run a locally-built Ruby
# with correct environment variables and arguments.
show = false show = false
precommand = [] precommand = []
while arg = ARGV[0] while arg = ARGV[0]

View file

@ -1,5 +1,8 @@
#!ruby #!ruby
# Filter for preventing Doxygen from processing RDoc comments.
# Used by the Doxygen template.
ARGF.binmode ARGF.binmode
source = ARGF.read source = ARGF.read
source = source.gsub(%r{/\*([!*])((?!\*/).+?)\*/}m) do |comment| source = source.gsub(%r{/\*([!*])((?!\*/).+?)\*/}m) do |comment|

View file

@ -28,7 +28,7 @@ require 'pathname'
require 'open3' require 'open3'
require 'pp' require 'pp'
# When out-of-place bulid, files may be built in source directory or # When out-of-place build, files may be built in source directory or
# build directory. # build directory.
# Some files are always built in the source directory. # Some files are always built in the source directory.
# Some files are always built in the build directory. # Some files are always built in the build directory.

View file

@ -1,6 +1,9 @@
# vcs # vcs
require 'fileutils' require 'fileutils'
# This library is used by several other tools/ scripts to detect the current
# VCS in use (e.g. SVN, Git) or to interact with that VCS.
ENV.delete('PWD') ENV.delete('PWD')
unless File.respond_to? :realpath unless File.respond_to? :realpath

View file

@ -1,3 +1,5 @@
# Convert addresses to line numbers for MiniRuby.
# ARGF = open('ha') # ARGF = open('ha')
cd = `pwd`.chomp + '/' cd = `pwd`.chomp + '/'
ARGF.each{|line| ARGF.each{|line|

View file

@ -1,4 +1,5 @@
#!/bin/sed -f #!/bin/sed -f
# This file is used when generating code for the Ruby parser.
/^int yydebug;/{ /^int yydebug;/{
i\ i\
#ifndef yydebug #ifndef yydebug