diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-12 01:28:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-12 01:28:10 +0000 |
commit | 1eeeb00a0a9e3316e7ac881d5201e6601335dc12 (patch) | |
tree | a5941b0dfa76977a2da550dbd0ecb90ddf1d7fec | |
parent | 8e3bf17b03f823872e03c4af617c47390411f3b6 (diff) | |
download | ruby-1eeeb00a0a9e3316e7ac881d5201e6601335dc12.tar.gz |
* 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
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | version.h | 2 |
2 files changed, 1 insertions, 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]*\)"'` @@ -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 |