зеркало из https://github.com/github/ruby.git
* version.h: use patchlevel if revision is not set.
* {bcc32,win{32,ce}}/setup.mak (-version-): skip including revision.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c892851a25
Коммит
872899fa58
|
@ -1,4 +1,8 @@
|
|||
Sun Dec 23 03:22:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sun Dec 23 03:26:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* version.h: use patchlevel if revision is not set.
|
||||
|
||||
* {bcc32,win{32,ce}}/setup.mak (-version-): skip including revision.h.
|
||||
|
||||
* common.mk (srcs): new target to generated sources.
|
||||
|
||||
|
|
|
@ -84,6 +84,7 @@ $(BANG)endif
|
|||
|
||||
-version-: nul
|
||||
@cpp32 -I$(srcdir) -P- -o$(MAKEFILE) > nul &&|
|
||||
\#define RUBY_REVISION 0
|
||||
\#include "version.h"
|
||||
MAJOR = RUBY_VERSION_MAJOR
|
||||
MINOR = RUBY_VERSION_MINOR
|
||||
|
|
|
@ -32,7 +32,7 @@ RUBY_EXTERN const char ruby_copyright[];
|
|||
#define RUBY_REVISION 0
|
||||
#endif
|
||||
|
||||
#if RUBY_VERSION_TEENY > 0 && RUBY_PATCHLEVEL < 5000 && !RUBY_REVISION
|
||||
#if !RUBY_REVISION
|
||||
#define RUBY_RELEASE_STR "patchlevel"
|
||||
#define RUBY_RELEASE_NUM RUBY_PATCHLEVEL
|
||||
#else
|
||||
|
|
|
@ -140,6 +140,7 @@ int main(int argc, char **argv)
|
|||
|
||||
-version-: nul
|
||||
@$(CPP) -I$(srcdir) <<"Creating $(MAKEFILE)" >>$(MAKEFILE)
|
||||
#define RUBY_REVISION 0
|
||||
#include "version.h"
|
||||
MAJOR = RUBY_VERSION_MAJOR
|
||||
MINOR = RUBY_VERSION_MINOR
|
||||
|
|
|
@ -63,6 +63,7 @@ BASERUBY = $(BASERUBY)
|
|||
!endif
|
||||
<<
|
||||
@$(CPP) -I$(srcdir) <<"Creating $(MAKEFILE)" >> $(MAKEFILE)
|
||||
#define RUBY_REVISION 0
|
||||
#include "version.h"
|
||||
MAJOR = RUBY_VERSION_MAJOR
|
||||
MINOR = RUBY_VERSION_MINOR
|
||||
|
|
Загрузка…
Ссылка в новой задаче