From 21495774766472ed7a4c2ac0d80dec76e07df14b Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 10 Jan 2009 11:28:41 +0000 Subject: [PATCH] * version.h: make version string succinct: "ruby 1.9.1p5000 (2009-01-10 trunk 21414) [i686-linux]". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ version.h | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index abb9238d9a..1a59a2867f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jan 10 20:26:17 2009 Tanaka Akira + + * version.h: make version string succinct: + "ruby 1.9.1p5000 (2009-01-10 trunk 21414) [i686-linux]". + Sat Jan 10 19:05:13 2009 Koichi Sasada * cont.c (cont_restore_1): should not be inlined. diff --git a/version.h b/version.h index 959a5eb489..9cfb3ceaf9 100644 --- a/version.h +++ b/version.h @@ -24,14 +24,15 @@ RUBY_EXTERN const char ruby_copyright[]; #define RUBY_BIRTH_MONTH 2 #define RUBY_BIRTH_DAY 24 +#define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL) + #ifndef RUBY_REVISION -#include "revision.h" +# include "revision.h" #endif -#ifndef RUBY_REVISION -#define RUBY_REVISION 0 +# ifndef RUBY_REVISION +# define RUBY_REVISION 0 #endif -#define RUBY_PATCHLEVEL_STR " patchlevel-"STRINGIZE(RUBY_PATCHLEVEL) #if RUBY_REVISION # ifdef RUBY_BRANCH_NAME # define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "STRINGIZE(RUBY_REVISION) @@ -44,8 +45,8 @@ RUBY_EXTERN const char ruby_copyright[]; # define RUBY_DESCRIPTION \ "ruby "RUBY_VERSION \ + RUBY_PATCHLEVEL_STR \ " ("RUBY_RELEASE_DATE \ - RUBY_PATCHLEVEL_STR \ RUBY_REVISION_STR") " \ "["RUBY_PLATFORM"]" # define RUBY_COPYRIGHT \