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

ruby-changes:9117

From: nobu <ko1@a...>
Date: Fri, 12 Dec 2008 10:28:17 +0900 (JST)
Subject: [ruby-changes:9117] Ruby:r20654 (trunk): * configure.in (rb_version): greps only the line that defines version.

nobu	2008-12-12 10:28:10 +0900 (Fri, 12 Dec 2008)

  New Revision: 20654

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

  Log:
    * configure.in (rb_version): greps only the line that defines version.
    * version.h (RUBY_VERSION_CODE, RUBY_RELEASE_CODE): removed.

  Modified files:
    trunk/configure.in
    trunk/version.h

Index: configure.in
===================================================================
--- configure.in	(revision 20653)
+++ configure.in	(revision 20654)
@@ -64,7 +64,7 @@
 AC_SUBST(GNU_LD)])
 
 unset GREP_OPTIONS
-rb_version=`grep RUBY_VERSION $srcdir/version.h`
+rb_version=`grep '^#define RUBY_VERSION ' $srcdir/version.h`
 MAJOR=`expr "$rb_version" : '#define RUBY_VERSION "\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*"'`
 MINOR=`expr "$rb_version" : '#define RUBY_VERSION "[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*"'`
 TEENY=`expr "$rb_version" : '#define RUBY_VERSION "[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)"'`
Index: version.h
===================================================================
--- version.h	(revision 20653)
+++ version.h	(revision 20654)
@@ -1,7 +1,5 @@
 #define RUBY_VERSION "1.9.1"
 #define RUBY_RELEASE_DATE "2008-12-12"
-#define RUBY_VERSION_CODE 191
-#define RUBY_RELEASE_CODE 20081212
 #define RUBY_PATCHLEVEL 5000
 
 #define RUBY_VERSION_MAJOR 1

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

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