diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-28 08:26:42 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-28 08:26:42 +0000 |
commit | 0d45b8a945767387e7465eb4b1411bf0c81ba587 (patch) | |
tree | 0880b07edd47db2c790f556aac81b9d800875962 /tool | |
parent | 0b0697030618c4c947a4bc4c6a2895515e522d86 (diff) | |
download | ruby-0d45b8a945767387e7465eb4b1411bf0c81ba587.tar.gz ruby-0d45b8a945767387e7465eb4b1411bf0c81ba587.tar.xz ruby-0d45b8a945767387e7465eb4b1411bf0c81ba587.zip |
* tool/make-snapshot.rb: merged back from trunk.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@19990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/make-snapshot | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index b2081f615..0f0a31fb3 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -1,5 +1,5 @@ #!/usr/bin/ruby -s -# -*- coding: US-ASCII -*- +# -*- encoding: us-ascii -*- require 'uri' require 'digest/md5' require 'digest/sha2' @@ -21,6 +21,11 @@ ENV["RUBY"] ||= "ruby" ENV["MV"] ||= "mv" ENV["MINIRUBY"] ||= "ruby" +class String + # for older ruby + alias bytesize size unless method_defined?(:bytesize) +end + $patch_file &&= File.expand_path($patch_file) path = ENV["PATH"].split(File::PATH_SEPARATOR) %w[YACC BASERUBY RUBY MV MINIRUBY].each do |var| |