summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--version.h11
2 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index abb9238d9a8..1a59a2867fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jan 10 20:26:17 2009 Tanaka Akira <akr@fsij.org>
+
+ * 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 <ko1@atdot.net>
* cont.c (cont_restore_1): should not be inlined.
diff --git a/version.h b/version.h
index 959a5eb4895..9cfb3ceaf99 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 \