[前][次][番号順一覧][スレッド一覧]

ruby-changes:37804

From: nobu <ko1@a...>
Date: Sat, 7 Mar 2015 11:06:42 +0900 (JST)
Subject: [ruby-changes:37804] nobu:r49885 (trunk): fake.rb.in: RUBY_PATCHLEVEL

nobu	2015-03-07 11:06:28 +0900 (Sat, 07 Mar 2015)

  New Revision: 49885

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49885

  Log:
    fake.rb.in: RUBY_PATCHLEVEL
    
    * template/fake.rb.in: add RUBY_PATCHLEVEL and include it in
      RUBY_DESCRIPTION.

  Modified files:
    trunk/template/fake.rb.in
Index: template/fake.rb.in
===================================================================
--- template/fake.rb.in	(revision 49884)
+++ template/fake.rb.in	(revision 49885)
@@ -11,12 +11,15 @@ class Object https://github.com/ruby/ruby/blob/trunk/template/fake.rb.in#L11
   CROSS_COMPILING = RUBY_PLATFORM
   remove_const :RUBY_PLATFORM
   remove_const :RUBY_VERSION
+  remove_const :RUBY_PATCHLEVEL
   remove_const :RUBY_RELEASE_DATE
   remove_const :RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
   RUBY_PLATFORM = "@arch@"
   RUBY_VERSION = "@RUBY_PROGRAM_VERSION@"
+  RUBY_PATCHLEVEL = @PATCHLEVEL@
   RUBY_RELEASE_DATE = "@RUBY_RELEASE_DATE@"
-  RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
+  patchlevel_str = RUBY_PATCHLEVEL == -1 ? "dev" : "p#{RUBY_PATCHLEVEL}"
+  RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
 end
 builddir = File.dirname(__FILE__)
 top_srcdir = File.join(builddir, "@srcdir@")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]