summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-27 04:25:47 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-27 04:25:47 +0000
commitcdf80f030d445e07fbcabf724101bcee18212036 (patch)
treefba713dac99442973c587732400c16f7cfd01ee2 /win32/Makefile.sub
parent791ff286285749f790132b882ede69261b11921a (diff)
* win32/{setup.mak,Makefile.sub}: update fake.rb like
template/fake.rb.in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 2d4ecca..a04e802 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1037,11 +1037,14 @@ $(RCFILES): $(RBCONFIG) $(srcdir)/revision.h $(srcdir)/win32/resource.rb
$(arch)-fake.rb: $(MKFILES) $(srcdir)/version.h
@echo Creating <<$@
class Object
+ remove_const :CROSS_COMPILING if defined?(CROSS_COMPILING)
CROSS_COMPILING = RUBY_PLATFORM
remove_const :RUBY_PLATFORM
remove_const :RUBY_VERSION
+ remove_const :RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
RUBY_PLATFORM = "$(arch)"
- RUBY_VERSION = "$(MAJOR).$(MINOR).$(TEENY)"
+ RUBY_VERSION = $(RUBY_PROGRAM_VERSION)
+ RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (" + $(RUBY_PROGRAM_RELEASE_DATE) + ") [#{RUBY_PLATFORM}]"
end
class File
remove_const :ALT_SEPARATOR