From 1eeeb00a0a9e3316e7ac881d5201e6601335dc12 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 12 Dec 2008 01:28:10 +0000 Subject: [PATCH] * configure.in (rb_version): greps only the line that defines version. * version.h (RUBY_VERSION_CODE, RUBY_RELEASE_CODE): removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 2 +- version.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 34fe037d2c..62c55774a5 100644 --- a/configure.in +++ b/configure.in @@ -64,7 +64,7 @@ GNU_LD=$rb_cv_prog_gnu_ld 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]*\)"'` diff --git a/version.h b/version.h index 121634c131..e54698c257 100644 --- a/version.h +++ b/version.h @@ -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