aboutsummaryrefslogtreecommitdiffstats
path: root/tool
Commit message (Collapse)AuthorAgeFilesLines
* improve git repository detectionfix/git-worktree-detectionKazuki Yamaguchi2016-04-012-10/+16
| | | | | | | | | | | | * configure.in (AC_CONFIG_FILES): $srcdir/.git can be a file pointing the real git_dir, such as when the git working tree is a "linked working tree" (a working tree created by git-worktree). So use git-rev-parse --git-dir to check if $srcdir is the top-level of a git repository, not just checking if the $srcdir/.git directory does exist or not. * tool/change_maker.rb: use tool/vcs.rb to detect VCS. This used to have its own VCS detection code, while we have tool/vcs.rb. * tool/vcs.rb (detect): remove code duplication
* * tool/release.sh: two-digit version number support.usa2016-03-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/merger.rb (version): version number may be two-digit.usa2016-03-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/redmine-backporter.rb: add given revision to current changestsnaruse2016-03-291-2/+3
| | | | | | on associating the revision to the related ticket. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/merger.rb: update revision.h before merge.naruse2016-03-291-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/redmine-backporter.rb (backport): show merger.rb's path.naruse2016-03-291-5/+20
| | | | | | | | | | * tool/redmine-backporter.rb (show): show current issue again if no ticket number is given. * tool/redmine-backporter.rb (rel): show error message if current bugs.ruby-lang.org doesn't support the API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/merger.rb: support to backport header as backport identifier.naruse2016-03-291-4/+8
| | | | | | Now you can specify by 'merge revision(s) 49254: [Backport #10738]'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gen_dummy_probes.rb: argument namesnobu2016-03-271-8/+9
| | | | | | * tool/gen_dummy_probes.rb: preserve macro argument names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compile.c: explicit addressnobu2016-03-261-5/+5
| | | | | | | * compile.c (prepare_compile_error): add & to explicit address of functions to suppress warnings by old VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* transcode-tblgen.rb: chomp invalid linenobu2016-03-161-3/+3
| | | | | | | * tool/transcode-tblgen.rb (citrus_decode_mapsrc): remove newline from invalid line in exception messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* transcode-tblgen.rb: binary modenobu2016-03-161-1/+1
| | | | | | | * tool/transcode-tblgen.rb (citrus_decode_mapsrc): read in binary mode to deal with non-ascii characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkconfig.rb: cross_compiling optionnobu2016-02-291-1/+2
| | | | | | | | * common.mk, tool/mkconfig.rb: set cross_compiling option from Makefile, but not from rbconfig.rb, which is just going to be created by this command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: defer warningnobu2016-02-181-6/+11
| | | | | | | * tool/downloader.rb (Downloader.download): warn using http only when really downloading. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: drive letter in without_destdirnobu2016-02-161-1/+0
| | | | | | | | | * tool/rbinstall.rb (without_destdir): just strip a drive letter which is prepended by with_destdir. pointed out by @DavidEGrayson. https://github.com/ruby/ruby/commit/0e5f9ae#commitcomment-16101763 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: drive letter in without_destdirnobu2016-02-151-2/+2
| | | | | | | | | * tool/rbinstall.rb (without_destdir): compare with the destdir after stripping a drive letter, on dosish platforms. pointed out by @DavidEGrayson. https://github.com/ruby/ruby/commit/d0cf23b#commitcomment-16100407 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkrunnable.rb: symlink on Windows [ci skip]nobu2016-02-091-1/+1
| | | | | | * tool/mkrunnable.rb: File.symlink is supported on Windows now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkrunnable.rb: clean link before symlink [ci skip]nobu2016-02-091-4/+13
| | | | | | | * tool/mkrunnable.rb (clean_link): clean link before symlink not to make a symlink in the linked directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: https setternobu2016-02-021-1/+5
| | | | | | | * tool/downloader.rb (Downloader.https): define class variable setter for 1.8, class_variable_set was private. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb: Fixed a logical error, improved documentationduerst2016-01-231-18/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: git worktreenobu2016-01-201-5/+7
| | | | | | | * tool/vcs.rb (VCS.detect, VCS::GIT): support working directory created by `git worktree`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extlibs.rb: add --cache optionnobu2016-01-201-17/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make-snapshot: remove Unicode datanobu2016-01-191-0/+1
| | | | | | | * make-snapshot: remove Unicode data files, which are not necessary once all source have been generated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make-snapshot: download firstnobu2016-01-191-2/+5
| | | | | | | | | | * common.mk (update-download): split to download only, excluding VCS. * make-snapshot: download config, Unicode data, gem, and external library files first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: get rid of repeating same namesnobu2016-01-181-0/+6
| | | | | | | | | * common.mk (download-unicode-data): strip directory paths from the target names, to get rid of repeating same file names. * tool/downloader.rb: add -p option for prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: test-sample was changed to test-basic.hsbt2016-01-161-30/+0
| | | | | | | | | | [Feature #11982][ruby-core:72823] * basictest/runner.rb: ditto. rename from tool/rubytest.rb. * basictest/test.rb: ditto. rename from sample/test.rb. * defs/gmake.mk: picked from r53540 * sample/test.rb: backword compatibility for chkbuild. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "* common.mk: test-sample was changed to test-basic."naruse2016-01-151-0/+30
| | | | | | | This reverts r53537. Fix chkbuild first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: test-sample was changed to test-basic.hsbt2016-01-151-30/+0
| | | | | | | | [Feature #11982][ruby-core:72823] * basictest/runner.rb: ditto. rename from tool/rubytest.rb. * basictest/test.rb: ditto. rename from sample/test.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: srcdir accessornobu2016-01-091-0/+2
| | | | | | * tool/vcs.rb (VCS#srcdir): add accessor for VCS::GIT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extract version from version.hnobu2016-01-091-5/+5
| | | | | | | * tool/mkconfig.rb: extract version numbers from version.h but not from API version in include/ruby/version.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r53459, r53427, r53314nobu2016-01-091-16/+0
| | | | | | | | Revert "* tool/make-snapshot: fix for the changes of version.h in r53314." Revert "* version.h (RUBY_BUILD_VERSION_STR_3): Workaround for old version of" Revert "program version from API version" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: fix for the changes of version.h in r53314.shugo2016-01-081-0/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkconfig.rb: SDKROOTnobu2016-01-011-1/+1
| | | | | | | | * tool/mkconfig.rb (RbConfig): prefix SDKROOT to oldincludedir not includedir, the latter is outside the ruby installation. [ruby-core:72496] [Bug #11881] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "* tool/post-commit.sh: copied from svn server."naruse2015-12-261-72/+0
| | | | | | manged in another repo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/post-commit.sh: copied from svn server.naruse2015-12-261-0/+72
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/vcs.rb (IO.popen): Refactor. Avoid assigning in condition.sorah2015-12-241-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/file2lastrev.rb: Fix ArgumentError to work on Ruby 1.8.7.sorah2015-12-241-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/vcs.rb (IO.popen): Enable on Ruby 1.9 where chdir option is notsorah2015-12-241-3/+3
| | | | | | | | | supported on IO.popen * tool/vcs.rb (IO.popen): Fix NoMethodError. I guess r49705 was not tested... :/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2015-12-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/transcode_tablegen.rb: detailled documentationduerst2015-12-151-0/+37
| | | | | | for transcode_tblgen function [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/ebcdic.h: new dummy encoding EBCDIC-USduerst2015-12-141-2/+3
| | | | | | | | | | * enc/trans/ebcdic.trans: transcodings between EBCDIC-US and iso-8859-1 [with code from Andrea Ribuoli] * test/ruby/test_transcode.rb: tests for above * tool/transcode_tablegen.rb: additional argument for method transcode_tblgen git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ytab.sed: for bison 2nobu2015-12-141-0/+3
| | | | | | | * tool/ytab.sed: substitute `fprintf`s used directory in yy_reduce_print by bison 2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ytab.sed: replace argumentnobu2015-12-131-10/+3
| | | | | | | * tool/ytab.sed: substitute the first argument of YYFPRINTF, instead of substitution by preprocessor, not to redefine stderr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ytab.sed: work aroundnobu2015-12-131-0/+10
| | | | | | | * tool/ytab.sed: work around for platforms where vairadic macro is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: lex_state trace by yydebugnobu2015-12-131-2/+18
| | | | | | | | | | * parse.y (trace_lex_state): trace lex_state changes if yydebug is set, and send the messages to rb_stdout. * parse.y (rb_parser_printf): store YYPRINTF messages per lines so that lex_state traces do not mix. * tool/ytab.sed: add parser argument to yy_stack_print too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merger.rb: show procedure to push tag into GitHubnaruse2015-12-111-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkconfig.rb: must not be frozennobu2015-12-091-0/+1
| | | | | | | * tool/mkconfig.rb: rbconfig must not be fronzen-string-literal to expand CONFIG hash. [ruby-core:72006] [Bug #11798] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/merger.rb: get user's attention by using colored message when ↵usa2015-12-081-1/+1
| | | | | | requiring operation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix cross buildnobu2015-12-051-1/+2
| | | | | | | | * tool/fake.rb: Fix cross build when srcdir is an absolute path. * Makefile.in: PREP dependency is needed when cross build too, not "-r$(arch)-fake" to be used before created. [Fix GH-1125] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use more tough server: GitHub or repo.or.cznaruse2015-11-261-1/+5
| | | | | | https://gcc.gnu.org/wiki/GitMirror git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: Downloader.httpsnobu2015-11-261-8/+15
| | | | | | | * tool/downloader.rb (Downloader.https): extract a method instead of a global variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e