summaryrefslogtreecommitdiff
path: root/win32/resource.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-21 06:32:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-21 06:32:40 +0000
commit7dcc7aca28505460b64cd82a1416189e517c7f80 (patch)
tree828d6c05705dc5cbd7f02c563fe3c77f16973dec /win32/resource.rb
parent90ae4b364b91c505e708b468d22d1ee940640356 (diff)
* win32/resource.rb: include patchlevel number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/resource.rb')
-rwxr-xr-xwin32/resource.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/win32/resource.rb b/win32/resource.rb
index c7201bbeda3..e49160443c5 100755
--- a/win32/resource.rb
+++ b/win32/resource.rb
@@ -4,7 +4,9 @@ require 'rbconfig'
CONFIG = RbConfig::MAKEFILE_CONFIG
-fversion = "#{CONFIG['MAJOR']},#{CONFIG['MINOR']},#{CONFIG['TEENY']},0"
+version = %w'MAJOR MINOR TEENY PATCHLEVEL'.map {|v| CONFIG[v] || '0'}
+fversion = version.join(',')
+rversion = version.join('.')
$ruby_name ||= CONFIG["RUBY_INSTALL_NAME"]
$rubyw_name ||= CONFIG["RUBYW_INSTALL_NAME"] || $ruby_name.sub(/ruby/, '\&w')
@@ -72,7 +74,7 @@ BEGIN
BEGIN
BLOCK "000004b0"
BEGIN
- VALUE "FileDescription", "Ruby interpreter (#{desc}) #{RUBY_VERSION} [#{RUBY_PLATFORM}]\\0"
+ VALUE "FileDescription", "Ruby interpreter (#{desc}) #{rversion} [#{RUBY_PLATFORM}]\\0"
VALUE "FileVersion", "#{fversion}\\0"
VALUE "Home Page", "http://www.ruby-lang.org/\\0"
VALUE "InternalName", "#{base + ext}\\0"
@@ -81,7 +83,7 @@ BEGIN
VALUE "Platform", "#{RUBY_PLATFORM}\\0"
VALUE "ProductVersion", "#{fversion}\\0"
VALUE "Release Date", "#{RUBY_RELEASE_DATE}\\0"
- VALUE "Version", "#{RUBY_VERSION}\\0"
+ VALUE "Version", "#{rversion}\\0"
END
END
BLOCK "VarFileInfo"