summaryrefslogtreecommitdiff
path: root/mkconfig.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-31 04:40:37 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-31 04:40:37 +0000
commitac41cd68443ba522b48a09d8347a486df68a887e (patch)
treee46b19ac2d9f072832412def8fae4873d1db71d5 /mkconfig.rb
parenta0047c7d8959f62e89fdb8ee1845db473d7579b9 (diff)
* 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
Diffstat (limited to 'mkconfig.rb')
-rw-r--r--mkconfig.rb8
1 files changed, 4 insertions, 4 deletions
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"