diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-31 04:40:37 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-31 04:40:37 +0000 |
commit | 5484fc755dc5d9013c1a68f589773a732153dc01 (patch) | |
tree | e46b19ac2d9f072832412def8fae4873d1db71d5 /mkconfig.rb | |
parent | b42f7cc7900660bcad707c22023c89db071147cf (diff) | |
download | ruby-5484fc755dc5d9013c1a68f589773a732153dc01.tar.gz ruby-5484fc755dc5d9013c1a68f589773a732153dc01.tar.xz ruby-5484fc755dc5d9013c1a68f589773a732153dc01.zip |
* mkconfig.rb, ext/configsub.rb: VERSION -> RUBY_VERSION.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mkconfig.rb')
-rw-r--r-- | mkconfig.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mkconfig.rb b/mkconfig.rb index 178e934b5..e19925bc5 100644 --- a/mkconfig.rb +++ b/mkconfig.rb @@ -6,7 +6,7 @@ rbconfig_rb = ARGV[0] || 'rbconfig.rb' srcdir = $srcdir if $srcdir File.makedirs(File.dirname(rbconfig_rb), true) -version = VERSION +version = RUBY_VERSION config = open(rbconfig_rb, "w") $stdout.reopen(config) @@ -14,8 +14,8 @@ fast = {'prefix'=>TRUE, 'ruby_install_name'=>TRUE, 'INSTALL'=>TRUE, 'EXEEXT'=>TR print %[ module Config - VERSION == "#{version}" or - raise "ruby lib version (#{version}) doesn't match executable version (\#{VERSION})" + RUBY_VERSION == "#{version}" or + raise "ruby lib version (#{version}) doesn't match executable version (\#{RUBY_VERSION})" # This file was created by configrb when ruby was built. Any changes # made to this file will be lost the next time ruby is built. @@ -62,7 +62,7 @@ if not has_srcdir end if not has_version - VERSION.scan(/(\d+)\.(\d+)\.(\d+)/) { + RUBY_VERSION.scan(/(\d+)\.(\d+)\.(\d+)/) { print " CONFIG[\"MAJOR\"] = \"" + $1 + "\"\n" print " CONFIG[\"MINOR\"] = \"" + $2 + "\"\n" print " CONFIG[\"TEENY\"] = \"" + $3 + "\"\n" |