* 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
This commit is contained in:
usa 2013-12-27 04:25:47 +00:00
Родитель 791ff28628
Коммит cdf80f030d
3 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Fri Dec 27 13:25:03 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/{setup.mak,Makefile.sub}: update fake.rb like
template/fake.rb.in.
Thu Dec 26 16:10:41 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/Makefile.sub (fake.rb): should depend on version.h because

Просмотреть файл

@ -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

Просмотреть файл

@ -117,6 +117,8 @@ int main(void) {return (EnumProcesses(NULL,0,NULL) ? 0 : 1);}
MAJOR = RUBY_API_VERSION_MAJOR
MINOR = RUBY_API_VERSION_MINOR
TEENY = RUBY_API_VERSION_TEENY
RUBY_PROGRAM_VERSION = RUBY_VERSION
RUBY_PROGRAM_RELEASE_DATE = RUBY_RELEASE_DATE
MSC_VER = _MSC_VER
<<