From ac41cd68443ba522b48a09d8347a486df68a887e Mon Sep 17 00:00:00 2001 From: eban Date: Thu, 31 May 2001 04:40:37 +0000 Subject: * mkconfig.rb, ext/configsub.rb: VERSION -> RUBY_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mkconfig.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mkconfig.rb') diff --git a/mkconfig.rb b/mkconfig.rb index 178e934b55..e19925bc52 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" -- cgit v1.2.3