Граф коммитов

119 Коммитов

Автор SHA1 Сообщение Дата
nobu fa20fd8469 rbinstall.rb: Gem::Installer lacks dir_mode option
* tool/rbinstall.rb (bundle-gems): Gem::Installer does not support
  directory permission option, set umask to owner writable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-05 23:52:49 +00:00
nobu b9eb70634e rbinstall.rb: rename tags
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-05 23:52:48 +00:00
nobu 604df3e22d tool/rbinstall.rb: add new tags
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-05 16:23:12 +00:00
nobu 00742d2ca5 rbinstall.rb: default umask
* tool/rbinstall.rb: revert r49841 and default umask to just
  prohibit all from writing.  symlink(2) has no argument to set
  permissions but is affected by umask.
  [ruby-dev:49975] [Bug #13194]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-05 16:23:11 +00:00
hsbt 8395d5a7c3 Prepare to make CSV module to default gem.
* lib/csv.gemspec: initial gemspec for csv gem.
  * tool/rbinstall.rb: support gemspec located under lib direcotry like `lib/foo.gemspec`

  [Feature #13177]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-01 09:12:53 +00:00
nobu 1d36a09d81 rbinstall.rb: mimic rubygems wrapper script
* tool/rbinstall.rb (app_script_text): move shell script part
  after comments generated by RubyGems. '#'-lines are comments in
  both of ruby and shell script.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-15 05:50:41 +00:00
nobu 37a8a2a26e rbinstall.rb: do nothing if bin script is same
* tool/rbinstall.rb (check_executable_overwrite): do nothing if
  the existing file equals to the wrapper script to be generated.

* tool/rbinstall.rb (generate_bin_script): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-15 00:45:10 +00:00
nobu c850c4ad37 fix up r57322
* tool/rbinstall.rb: ruby_install_name is used too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-14 06:13:23 +00:00
nobu bc388526ba fix prolog in gem wrapper scripts
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-13 14:15:00 +00:00
nobu 0f78a6a1b9 rbinstall.rb: LIBRUBY_RELATIVE
* tool/rbinstall.rb: see LIBRUBY_RELATIVE in CONFIG instead of
  reading config.h.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-13 05:58:44 +00:00
nobu 9bd2490785 install-static-library option [ci skip]
* configure.in (install-static-library): add option to enable/
  disable to install static ruby library.  defaulted to "no" if
  enable-shared.  [Feature #12845]
* tool/rbinstall.rb (local-arch-lib): respect the option.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-17 07:17:07 +00:00
rhe d1dbeebebf rbinstall.rb: don't install gemspec for skipped libraries
* tool/rbinstall.rb (gem): Don't install gemspec if no files will be
  installed for the gem. This happens when the extension library is not
  compiled.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-26 02:50:31 +00:00
nobu 97a016ac8a install extra libraries
* ext/extmk.rb (extract_makefile, extmake, configuration): store
  extra libraries to be installed.
* tool/rbinstall.rb (ext-arch): install extra libraries.
* ext/zlib/extconf.rb: install zlib if built.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-24 13:26:21 +00:00
nobu 19f624541f rbinstall.rb: gem bindir
* tool/rbinstall.rb (gem): use the bindir of each gemspec instead
  of hardcoded 'bin', since rdoc 5.0.0 overrides it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-08 08:40:16 +00:00
nobu b08a45521e rbinstall.rb: install just one gemspec [ci skip]
* tool/rbinstall.rb (gem): install gemspec match with the
  directory only.  some gems, (e.g., json) have multiple gemspec
  files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-05 00:58:23 +00:00
nobu 2f4f44352c rbinstall.rb: install iff expected platforms [ci skip]
* tool/rbinstall.rb (gem): install only gemspecs for expected
  platforms.  e.g., ignore json-java.gemspec in json gem.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-04 06:25:38 +00:00
nobu 162a8fdb7a rbinstall.rb: chdir to gem directory [ci skip]
* tool/rbinstall.rb (gem): load gemspec files under each
  directories, since some gemspecs read files there.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-04 06:15:58 +00:00
nobu c929094b31 rbinstall.rb: prefix with space [ci skip]
* tool/rbinstall.rb (bin): exec via /bin/sh if the prefix contains
  space charaters, because shebang does not support that case in
  general.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-01 06:10:25 +00:00
nobu 7f7aa9d442 extmk.rb: build_complete
* ext/extmk.rb (create_makefile): make gem.build_complete file
  under TARGET_SO_DIR and install it only when the gem build
  succeeded.  [ruby-core:77057] [Bug #12681]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-08-31 08:39:23 +00:00
nobu a5eab8ccef skip failed gems
* tool/rbinstall.rb: skip gems which failed to build extensions.
  [ruby-dev:49764] [Bug #12683]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-08-17 17:36:28 +00:00
nobu 9839d82d1e gem extensions
* ext/extmk.rb: build gem extensions into separate directories
* tool/rbinstall.rb: install pre-built gem extension files gem
  extension directories.  [ruby-core:76931] [Bug #12681]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-08-17 14:14:44 +00:00
normal f8d0bdedf1 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
2016-07-02 21:01:04 +00:00
nobu 9cedfbcb91 rbinstall.rb: drive letter in without_destdir
* 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
2016-02-16 00:51:48 +00:00
nobu 0e5f9aeaea rbinstall.rb: drive letter in without_destdir
* 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
2016-02-15 17:50:08 +00:00
hsbt 8fef6aa20b * tool/rbinstall.rb: fix wrong permission for gem specification without
zlib runtime. [Bug #11685][ruby-dev:49343]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-16 06:33:17 +00:00
nobu a2dbb9d603 rbinstall.rb: compress man pages.
* tool/rbinstall.rb (man): get rid of prompt from compress
  program.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-06 05:09:42 +00:00
nobu ae90724357 rbinstall.rb: compress man pages.
* tool/rbinstall.rb (man): compress mdoc-style man pages, without
  Mdoc2Man.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-06 04:42:37 +00:00
nobu d85096ad45 compressed mantypes
* configure.in (--with-mantype): add compressed mantypes.

* tool/rbinstall.rb (man): compress man pages if specified.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-10 12:49:55 +00:00
hsbt 9829e91d34 * ext/json/json.gemspec, lib/rdoc/rdoc.gemspec: added gemspec directly.
* defs/default_gems, tool/rbinstall.rb: removed default_gems definition.
  it make simple installation for default gems.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-12 09:12:15 +00:00
nobu 3cb0c6e39e rbinstall.rb: destdir
* tool/rbinstall.rb (gem): use installed ruby under destdir.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 23:31:48 +00:00
hsbt d266473283 * tool/rbinstall.rb: support destdir for native extention gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 14:26:44 +00:00
nobu 92c3c97273 rbinstall.rb: no post install messages
* tool/rbinstall.rb: suppress post install messages of rdoc for
  older ruby versions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-07 16:05:32 +00:00
nobu fdb3bbf194 rbinstall.rb: $script_mode
* tool/rbinstall.rb: set script files permission to $script_mode.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-07 16:05:21 +00:00
nobu 5180de635a rbinstall.rb: same options for gems
* tool/rbinstall.rb (gem): share same options between normal
  installer and unpacked installer.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-05 00:34:27 +00:00
hsbt 09bcf7b51b * tool/rbinstall.rb: fix bin script permission of bundled gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-05 00:11:05 +00:00
hsbt 75f9f244d6 * tool/rbinstall.rb: support --program-suffix option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 23:46:45 +00:00
hsbt c4ee0df8ba * lib/rake/*: Gemify rake [fix GH-862][Feature #11025]
* test/rake/*: ditto.
* tool/rbinstall.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 12:31:31 +00:00
nobu d7628fcfd3 rbinstall.rb: set umask 077
* tool/rbinstall.rb: default umask to prohibit group/others from
  reading/writing/executing.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04 01:34:11 +00:00
nobu 36ba828dac rbinstall.rb: gems dir_mode
* tool/rbinstall.rb (DirPackage#extract_files): set directories
  permission of gems.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03 16:27:34 +00:00
nobu 38a37ed8f2 rbinstall.rb: no batch installation
* tool/rbinstall.rb (bin-comm): drop batch file installation.
  Windows 95 support has not been supported already.
  [Feature #10806]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-02-01 04:46:55 +00:00
nobu 48eb1aa542 rbinstall.rb: duplicate code
* tool/rbinstall.rb (gem): remove duplicate load path and require.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-31 09:07:17 +00:00
nobu 64a36e434d rbinstall.rb: trilingual batch files
* tool/rbinstall.rb (bin-comm): trilingual, (sh, cmd, and ruby)
  prolog for batch files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-31 09:01:59 +00:00
nobu 8f2683ede5 rbinstall.rb: no CR
* tool/rbinstall.rb (bin-comm): no CR at EOF in batch files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-31 08:42:25 +00:00
nobu e783dcd8ce rbinstall.rb: no chdir
* tool/rbinstall.rb (PROLOG_SCRIPT): use the given symlinked
  directory name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-31 08:42:13 +00:00
nobu bc3e73a8f3 rbinstall.rb: literal colon
* tool/rbinstall.rb (PROLOG_SCRIPT): ":" in "Use Alternate Value"
  parameter expansion is not a path separator, but a literal colon.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29 08:26:45 +00:00
nobu 6327183361 rbinstall.rb: load zlib earlier
* tool/rbinstall.rb: try to load zlib before using Gem::Installer,
  not to let LoadError raise during autoloading.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 00:00:53 +00:00
nobu d0cf23b57e rbinstall.rb: install unpacked gems
* tool/rbinstall.rb (gem): install gems from unpacked directories
  for platforms where zlib is not available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 04:48:56 +00:00
nobu 51e7d0efb2 rbinstall.rb: always make gem directories
* tool/rbinstall.rb (gem): always make gem directories regardless
  of zlib.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 04:35:18 +00:00
nobu 9e32277356 rbinstall.rb: use DLEXT
* tool/rbinstall.rb (RbInstall::Specs::FileCollector#built_libraries):
  use configured value DLEXT instead of hardcoded suffix. shared
  object suffix is system dependent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 04:12:58 +00:00
nobu ec171c4597 rbinstall.rb: fix bundled gems location
* tool/rbinstall.rb (gem): fix changing permissions of installed
  bundled gems.  [Fix GH-812]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-13 12:59:26 +00:00