Bug #12539 ยป tool_comments.patch
| tool/asm_parse.rb | ||
|---|---|---|
|
# YARV tool to parse assembly output.
|
||
|
stat = {}
|
||
|
while line = ARGF.gets
|
||
| tool/change_maker.rb | ||
|---|---|---|
|
#! ./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__))
|
||
|
require File.expand_path("../vcs", __FILE__)
|
||
| tool/downloader.rb | ||
|---|---|---|
|
# 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'
|
||
|
begin
|
||
|
require 'net/https'
|
||
| tool/enc-unicode.rb | ||
|---|---|---|
|
#!/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
|
||
|
#
|
||
|
# To use this, get UnicodeData.txt, Scripts.txt, PropList.txt,
|
||
| tool/eval.rb | ||
|---|---|---|
|
# VM checking and benchmarking code
|
||
|
require './rbconfig'
|
||
|
require 'fileutils'
|
||
| tool/expand-config.rb | ||
|---|---|---|
|
#!./miniruby -s
|
||
|
# Used to expand Ruby config entries for Win32 Makefiles.
|
||
|
config = File.read(conffile = $config)
|
||
|
config.sub!(/^(\s*)RUBY_VERSION\b.*(\sor\s*)$/, '\1true\2')
|
||
|
rbconfig = Module.new {module_eval(config, conffile)}::RbConfig
|
||
| tool/extlibs.rb | ||
|---|---|---|
|
#!/usr/bin/ruby
|
||
|
# Used to download, extract and patch extension libraries (extlibs)
|
||
|
# for Ruby. See common.mk for Ruby's usage.
|
||
|
require 'fileutils'
|
||
|
require 'digest'
|
||
|
require_relative 'downloader'
|
||
| tool/fake.rb | ||
|---|---|---|
|
# Used by Makefile and configure for building Ruby.
|
||
|
# See common.mk and Makefile.in for details.
|
||
|
class File
|
||
|
sep = ("\\" if RUBY_PLATFORM =~ /mswin|bccwin|mingw/)
|
||
|
if sep != ALT_SEPARATOR
|
||
| tool/file2lastrev.rb | ||
|---|---|---|
|
#!/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'
|
||
|
# this file run with BASERUBY, which may be older than 1.9, so no
|
||
| tool/gem-unpack.rb | ||
|---|---|---|
|
require 'rubygems'
|
||
|
require 'rubygems/package'
|
||
|
# This library is used by "make extract-gems" to
|
||
|
# unpack bundled gem files.
|
||
|
def Gem.unpack(file, dir = nil)
|
||
|
policy = Gem::Security::LowSecurity
|
||
|
(policy = policy.dup).ui = Gem::SilentUI.new
|
||
| tool/gen_dummy_probes.rb | ||
|---|---|---|
|
#!/usr/bin/ruby
|
||
|
# -*- coding: us-ascii -*-
|
||
|
# Used to create dummy probes (as for systemtap and DTrace) by Makefiles. See common.mk.
|
||
|
text = ARGF.read
|
||
|
# remove comments
|
||
| tool/gen_ruby_tapset.rb | ||
|---|---|---|
|
#!/usr/bin/ruby
|
||
|
# -*- coding: us-ascii -*-
|
||
|
# Create a tapset for systemtap and DTrace
|
||
|
# usage: ./ruby gen_ruby_tapset.rb --ruby-path=/path/to/ruby probes.d > output
|
||
|
require "optparse"
|
||
| tool/generic_erb.rb | ||
|---|---|---|
|
# -*- coding: us-ascii -*-
|
||
|
# Used to expand Ruby template files by common.mk, uncommon.mk and
|
||
|
# some Ruby extension libraries.
|
||
|
require 'erb'
|
||
|
require 'optparse'
|
||
|
require 'fileutils'
|
||
| tool/id2token.rb | ||
|---|---|---|
|
#! /usr/bin/ruby -p
|
||
|
# -*- coding: us-ascii -*-
|
||
|
# Used to build the Ruby parsing code in common.mk and Ripper.
|
||
|
BEGIN {
|
||
|
require 'optparse'
|
||
|
$:.unshift(File.dirname(__FILE__))
|
||
| tool/ifchange | ||
|---|---|---|
|
#!/bin/sh
|
||
|
# usage: ifchange target temporary
|
||
|
# Used in generating revision.h via Makefiles.
|
||
|
set -e
|
||
|
timestamp=
|
||
|
keepsuffix=
|
||
| tool/insns2vm.rb | ||
|---|---|---|
|
#!ruby
|
||
|
# This is used by Makefile.in to generate .inc files.
|
||
|
# See Makefile.in for details.
|
||
|
require 'optparse'
|
||
|
Version = %w$Revision: 11626 $[1..-1]
|
||
| tool/instruction.rb | ||
|---|---|---|
|
#!./miniruby
|
||
|
# -*- 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'
|
||
|
$:.unshift(File.dirname(__FILE__))
|
||
| tool/jisx0208.rb | ||
|---|---|---|
|
# Library used by tools/enc-emoji-citrus-gen.rb
|
||
|
module JISX0208
|
||
|
class Char
|
||
|
class << self
|
||
| tool/merger.rb | ||
|---|---|---|
|
exec "${RUBY-ruby}" "-x" "$0" "$@" && [ ] if false
|
||
|
#!ruby
|
||
|
# 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 'tempfile'
|
||
| tool/mk_call_iseq_optimized.rb | ||
|---|---|---|
|
/* 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
|
||
| tool/mkrunnable.rb | ||
|---|---|---|
|
#!./miniruby
|
||
|
# -*- coding: us-ascii -*-
|
||
|
# Used by "make runnable" target, to make symbolic links from a build
|
||
|
# directory.
|
||
|
require './rbconfig'
|
||
|
require 'fileutils'
|
||
| tool/node_name.rb | ||
|---|---|---|
|
#! ./miniruby
|
||
|
# Used when making Ruby to generate node_name.inc.
|
||
|
# See common.mk for details.
|
||
|
while gets
|
||
|
if ~/enum node_type \{/..~/^\};/
|
||
|
~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";")
|
||
| tool/parse.rb | ||
|---|---|---|
|
# Used as part of the "make parse" Makefile target.
|
||
|
# See common.mk for details.
|
||
|
$file = ARGV[0]
|
||
|
$str = ARGF.read.sub(/^__END__.*\z/m, '')
|
||
|
puts '# ' + '-' * 70
|
||
| tool/rbinstall.rb | ||
|---|---|---|
|
#!./miniruby
|
||
|
# Used by the "make install" target to install Ruby.
|
||
|
# See common.mk for more details.
|
||
|
begin
|
||
|
load "./rbconfig.rb"
|
||
|
rescue LoadError
|
||
| tool/rbuninstall.rb | ||
|---|---|---|
|
#! /usr/bin/ruby -nl
|
||
|
# Used by the "make uninstall" target to uninstall Ruby.
|
||
|
# See common.mk for more details.
|
||
|
BEGIN {
|
||
|
$dryrun = false
|
||
|
$tty = STDOUT.tty?
|
||
| tool/rmdirs | ||
|---|---|---|
|
#!/bin/sh
|
||
|
# Script used by configure to delete directories recursively.
|
||
|
for dir do
|
||
|
while rmdir "$dir" >/dev/null 2>&1 &&
|
||
|
parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do
|
||
| tool/runruby.rb | ||
|---|---|---|
|
#!./miniruby
|
||
|
# Used by "make runruby", configure, and by hand to run a locally-built Ruby
|
||
|
# with correct environment variables and arguments.
|
||
|
show = false
|
||
|
precommand = []
|
||
|
while arg = ARGV[0]
|
||
| tool/strip-rdoc.rb | ||
|---|---|---|
|
#!ruby
|
||
|
# Filter for preventing Doxygen from processing RDoc comments.
|
||
|
# Used by the Doxygen template.
|
||
|
ARGF.binmode
|
||
|
source = ARGF.read
|
||
|
source = source.gsub(%r{/\*([!*])((?!\*/).+?)\*/}m) do |comment|
|
||
| tool/update-deps | ||
|---|---|---|
|
require 'open3'
|
||
|
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.
|
||
|
# Some files are always built in the source directory.
|
||
|
# Some files are always built in the build directory.
|
||
| tool/vcs.rb | ||
|---|---|---|
|
# vcs
|
||
|
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')
|
||
|
unless File.respond_to? :realpath
|
||
| tool/vtlh.rb | ||
|---|---|---|
|
# Convert addresses to line numbers for MiniRuby.
|
||
|
# ARGF = open('ha')
|
||
|
cd = `pwd`.chomp + '/'
|
||
|
ARGF.each{|line|
|
||
| tool/ytab.sed | ||
|---|---|---|
|
#!/bin/sed -f
|
||
|
# This file is used when generating code for the Ruby parser.
|
||
|
/^int yydebug;/{
|
||
|
i\
|
||
|
#ifndef yydebug
|
||