Release code and revision number

e$B$J$+$@$G$9!#e(B

SVNe$B$X$N0\9T0JMhe(Bversion.he$B$N<+F099?7$,$G$-$J$/$J$C$?$N$H!“F|C10Le(B
e$B$G$O$”$^$jLr$KN)$?$J$$$3$H$b$"$k$N$G!“e(BSVNe$B$+$i%3%s%Q%$%k$7$?$H$-e(B
e$B$K$O0UL#$N$J$$e(Bpatchlevele$B$N$+$o$j$Ke(Brevisione$B$rI=<($9$k$h$&$K$7$?e(B
e$B$$$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+!#e(B

Index: Makefile.in

— Makefile.in (revision 12064)
+++ Makefile.in (working copy)
@@ -93,4 +93,7 @@ MANTYPE = @MANTYPE@

INSTALLED_LIST= .installed.list
+
+IFCHANGE = $(srcdir)/tool/ifchange
+

End of variables

@@ -185,2 +188,5 @@ distclean-local::
ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP)
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -o$@ -c ext/extinit.c
+
±update-revision-: $(srcdir)/new_rev.h

  • @$(IFCHANGE) $(srcdir)/revision.h $(srcdir)/new_rev.h
    Index: common.mk
    ===================================================================
    — common.mk (revision 12064)
    +++ common.mk (working copy)
    @@ -92,5 +92,7 @@ TESTWORKDIR = testwork
    BOOTSTRAPRUBY = $(MINIRUBY)

-all: $(MKFILES) $(PREP) $(RBCONFIG) $(LIBRUBY)
+VCS = svn
+
+all: $(MKFILES) $(PREP) $(REVISION_UP) $(RBCONFIG) $(LIBRUBY)
@$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS)
prog: $(PROGRAM) $(WPROGRAM)
@@ -531,5 +533,5 @@ variable.$(OBJEXT): {$(VPATH)}variable.c
version.$(OBJEXT): {$(VPATH)}version.c {$(VPATH)}ruby.h config.h
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \

  • {$(VPATH)}version.h
  • {$(VPATH)}version.h {$(VPATH)}$(REVISION_H)

compile.$(OBJEXT): {$(VPATH)}compile.c {$(VPATH)}yarvcore.h
@@ -605,5 +607,5 @@ vm_macro.inc: $(srcdir)/vm_macro.def
$(BASERUBY) $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) vm_macro.inc

-incs: $(INSNS)
+incs: $(INSNS) $(REVISION_UP)

docs:
@@ -667,2 +669,8 @@ vtune: miniruby$(EXEEXT)
dist: $(PROGRAM)
$(RUNRUBY) $(srcdir)/distruby.rb
+
+revision-up: new_rev.h

  • @$(IFCHANGE) revision.h new_rev.h

+new_rev.h: PHONY

  • $(VCS) info --xml $(srcdir) | sed -f $(srcdir)/tool/svninfo.sed > $@
    Index: configure.in
    ===================================================================
    — configure.in (revision 12064)
    +++ configure.in (working copy)
    @@ -1673,4 +1673,14 @@ AC_CONFIG_FILES(Makefile, [{
    echo; test x"$EXEEXT" = x || echo ‘miniruby: miniruby$(EXEEXT)’
    test “$RUBY_INSTALL_NAME$EXEEXT” = ruby || echo ‘ruby: $(PROGRAM);’
  • echo
  • echo “### revision information”
  • if test “grep '^\#include \"revision\.h\"' ${srcdir}/version.h”;
    then
  •  echo "REVISION_H  = revision.h"
    
  •  echo "REVISION_UP = revision-up"
    
  • else
  •  echo "REVISION_H  = version.h"
    
  •  echo "REVISION_UP ="
    
  • fi
  • echo
    sed [‘s/{$([^(){}])[^{}]}//g’] ${srcdir}/common.mk
    } >> Makefile], [RUBY_INSTALL_NAME=$RUBY_INSTALL_NAME EXEEXT=$EXEEXT])
    Index: version.c
    ===================================================================
    — version.c (revision 12064)
    +++ version.c (working copy)
    @@ -19,4 +19,5 @@ const char ruby_release_date[] = RUBY_RE
    const char ruby_platform[] = RUBY_PLATFORM;
    const int ruby_patchlevel = RUBY_PATCHLEVEL;
    +const int ruby_revision = RUBY_REVISION;

void
@@ -31,4 +32,5 @@ Init_version(void)
rb_define_global_const(“RUBY_PLATFORM”, p);
rb_define_global_const(“RUBY_PATCHLEVEL”,
INT2FIX(RUBY_PATCHLEVEL));

  • rb_define_global_const(“RUBY_REVISION”, INT2FIX(RUBY_REVISION));
    }

@@ -36,5 +38,6 @@ void
ruby_show_version(void)
{

  • printf(“ruby %s (%s patchlevel %d) [%s]\n”, RUBY_VERSION,
    RUBY_RELEASE_DATE, RUBY_PATCHLEVEL, RUBY_PLATFORM);
  • printf(“ruby %s (%s %s %d) [%s]\n”, RUBY_VERSION,
    RUBY_RELEASE_DATE,
  • RUBY_RELEASE_STR, RUBY_RELEASE_NUM, RUBY_PLATFORM);
    
    fflush(stdout);
    }
    Index: version.h
    ===================================================================
    — version.h (revision 12064)
    +++ version.h (working copy)
    @@ -1,14 +1,25 @@
    #define RUBY_VERSION “1.9.0”
    -#define RUBY_RELEASE_DATE “2007-03-13”
    #define RUBY_VERSION_CODE 190
    -#define RUBY_RELEASE_CODE 20070313
    -#define RUBY_PATCHLEVEL 0

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 0
-#define RUBY_RELEASE_YEAR 2007
-#define RUBY_RELEASE_MONTH 3
-#define RUBY_RELEASE_DAY 13
+#define RUBY_PATCHLEVEL 0
+#include “revision.h”
+
+#define RUBY_BIRTH_YEAR 1993
+#define RUBY_BIRTH_MONTH 2
+#define RUBY_BIRTH_DAY 24
+
+#if RUBY_VERSION_TEENY > 0 && RUBY_PATCHLEVEL < 5000
+#define RUBY_RELEASE_STR “patchlevel”
+#define RUBY_RELEASE_NUM RUBY_PATCHLEVEL
+#else
+#ifdef RUBY_BRANCH_NAME
+#define RUBY_RELEASE_STR RUBY_BRANCH_NAME
+#else
+#define RUBY_RELEASE_STR “revision”
+#endif
+#define RUBY_RELEASE_NUM RUBY_REVISION
+#endif

#ifdef RUBY_EXTERN
Index: tool/ifchange

— tool/ifchange (revision 0)
+++ tool/ifchange (revision 0)
@@ -0,0 +1,16 @@
+#!/bin/sh
+# usage: ifchange target temporary
+
+target="$1"
+temp="$2"
+if [ “$temp” = - ]; then

  • temp=“tmpdata$$.tmp~”
  • cat > “$temp” || exit $?
    +fi
    +if cmp “$target” “$temp” >/dev/null 2>&1; then
  • echo “$target unchanged”
  • rm -f “$temp”
    +else
  • echo “$target updated”
  • mv -f “$temp” “$target”
    +fi

Property changes on: tool/ifchange


Name: svn:executable

Name: svn:eol-style

  • LF

Index: tool/revision.sed

— tool/revision.sed (revision 0)
+++ tool/revision.sed (revision 0)
@@ -0,0 +1,5 @@
+#!/bin/sed -f
+/^#include “revision.h”/{
+r revision.h
+d
+}

Property changes on: tool/revision.sed


Name: svn:eol-type

  • LF
    Name: svn:executable

Index: tool/svninfo.sed

— tool/svninfo.sed (revision 0)
+++ tool/svninfo.sed (revision 0)
@@ -0,0 +1,25 @@
+#!/bin/sed -f
+:swarp;$!{N;b swarp}
+s/\n/ /g
+s/ / /g
+s/(.
)<url>[^<>]>([^<>])</url>/url=\2\n\1/
+s/(.)<root>[^<>]>([^<>])</root>/root=\2\n\1/
+s/^root=(.
)\nurl=\1///
+s/^branches///
+s/^[^\n]/#define RUBY_BRANCH_NAME “&”/
+P
+s/^.
\n//
+s/.<commit>([^<>])>(.)</commit>./\1\n\2/
+s/[^\n]<revision="([^\n])"[^\n]/#define RUBY_REVISION \1/
+P
+s/^.
\n//
+s/.<date>[^<>]>(.)</date>./\1/
+s/.<(([1-9][0-9])-(0*([1-9][0-9]))-(0([1-9][0-9]*)))T[0-9.:]Z./
+#define RUBY_RELEASE_DATE “\1”
+#define RUBY_RELEASE_CODE \2\3\5
+#define RUBY_RELEASE_YEAR \2
+#define RUBY_RELEASE_MONTH \4
+#define RUBY_RELEASE_DAY \6
+/
+s/^\n//
+s/\n$//

Property changes on: tool/svninfo.sed


Name: svn:executable

Name: svn:eol-style

  • LF

Index: win32/Makefile.sub

— win32/Makefile.sub (revision 12064)
+++ win32/Makefile.sub (working copy)
@@ -197,4 +197,14 @@ ASMEXT = asm
INSTALLED_LIST= .installed.list

+IFCHANGE = $(COMSPEC) /C $(srcdir:/=)\win32\ifchange.bat
+
+!if [find “revision.h” $(srcdir:/=)\version.h > nul] == 0
+REVISION_H = revision.h
+REVISION_UP = revision-up
+!else
+REVISION_H = version.h
+REVISION_UP =
+!endif
+
WINMAINOBJ = winmain.$(OBJEXT)
MINIOBJS = dmydln.$(OBJEXT)
@@ -219,5 +229,5 @@ config.status: $(CONFIG_H)
$(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub
@echo Creating config.h

  • @$(COMSPEC) /C $(srcdir:/=)\win32\ifchange.bat config.h <<
  • @$(IFCHANGE) config.h <<
    #if _MSC_VER != $(MSC_VER)
    #error MSC version unmatch
    @@ -561,2 +571,5 @@ dir.$(OBJEXT) win32.$(OBJEXT): {$(srcdir
    ext/extinit.obj: ext/extinit.c $(SETUP)
    $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fo$@ -c ext/extinit.c

±update-revision-: $(srcdir)/new_rev.h

  • @$(IFCHANGE) $(srcdir:/=)\revision.h $(srcdir:/=)\new_rev.h

e$BKNIt$G$9e(B

Nobuyoshi N. wrote:

SVNe$B$X$N0\9T0JMhe(Bversion.he$B$N<+F099?7$,$G$-$J$/$J$C$?$N$H!“F|C10Le(B
e$B$G$O$”$^$jLr$KN)$?$J$$$3$H$b$"$k$N$G!“e(BSVNe$B$+$i%3%s%Q%$%k$7$?$H$-e(B
e$B$K$O0UL#$N$J$$e(Bpatchlevele$B$N$+$o$j$Ke(Brevisione$B$rI=<($9$k$h$&$K$7$?e(B
e$B$$$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+!#e(B

svk e$B;H$$$O$I$&$9$l$P!#!#!#e(B

svk e$B$Ke(B info --xml e$B$O$J$$e(B

e$BA0ED$G$9!#e(B

On 3/14/2007 11:19 AM, Urabe S. wrote:

SVNe$B$X$N0\9T0JMhe(Bversion.he$B$N<+F099?7$,$G$-$J$/$J$C$?$N$H!“F|C10Le(B
e$B$G$O$”$^$jLr$KN)$?$J$$$3$H$b$"$k$N$G!“e(BSVNe$B$+$i%3%s%Q%$%k$7$?$H$-e(B
e$B$K$O0UL#$N$J$$e(Bpatchlevele$B$N$+$o$j$Ke(Brevisione$B$rI=<($9$k$h$&$K$7$?e(B
e$B$$$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+!#e(B

svk e$B;H$$$O$I$&$9$l$P!#!#!#e(B

svk e$B$Ke(B info --xml e$B$O$J$$e(B

ChangeLoge$B$Ke(B$Revision$e$B$rKd$a9~$`$h$&$K$7$F!"e(Bmakee$B;~$Ke(BChangeLoge$B$+$ie(B
e$B@Z$j=P$7$F$/$k$H$$$&$N$O$@$a$G$7$g$&$+!#e(B

e$B$J$+$@$G$9!#e(B

At Wed, 14 Mar 2007 11:28:14 +0900,
Shugo M. wrote in [ruby-dev:30567]:

On 3/14/2007 11:19 AM, Urabe S. wrote:

SVNe$B$X$N0\9T0JMhe(Bversion.he$B$N<+F099?7$,$G$-$J$/$J$C$?$N$H!“F|C10Le(B
e$B$G$O$”$^$jLr$KN)$?$J$$$3$H$b$"$k$N$G!“e(BSVNe$B$+$i%3%s%Q%$%k$7$?$H$-e(B
e$B$K$O0UL#$N$J$$e(Bpatchlevele$B$N$+$o$j$Ke(Brevisione$B$rI=<($9$k$h$&$K$7$?e(B
e$B$$$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+!#e(B

svk e$B;H$$$O$I$&$9$l$P!#!#!#e(B

svk e$B$Ke(B info --xml e$B$O$J$$e(B

svke$B$C$F%_%i!<$H%m!<%+%k%l%]%8%H%j$N:n@.$^$G$G!“e(Bworking
copye$B$Ne(Bcheckoute$B$Oe(Bsvne$B$G$9$k$s$8$c$”$j$^$;$s$G$7$?$C$1!#e(B

e$B$A$J$_$K!"e(Bsvke$B$G%j%b!<%H$N>pJs$r<h$k$K$O$I$&$9$l$P$$$$$s$G$7$g$&$+!#e(B

e$BAG$Ne(Bsvn
infoe$B$@$H%a%C%;!<%8$,9q:]2=$5$l$F$7$^$C$F$$$F!“7k2L$r=hM}$7$h$&$H$9$k$HLq2p$J$N$Ge(B–xmle$B$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$Ke(B
Mirrored From: e$B%_%i!<85%l%]%8%H%j$Ne(BURI, Rev. nnn
e$B$N$h$&$K=P$F$/$k$h$&$G$9!#e(B
svk cpe$B$7$F%m!<%+%k%V%i%s%A$r:n$C$Fe(Bsvk coe$B$7$F$$$k$He(B
Copied From: /mirror/trunk, Rev. 1587
Merged From: /mirror/trunk, Rev. 1589
e$B$N$h$&$K=P$F$/$k$@$1$G!”$5$i$Ke(Bsvk info //mirrore$B$J$I$Ge(B
e$BD4$Y$J$$$He(BMirrored Frome$B$N>pJs$O=P$F$3$J$$$h$&$G$9!#e(B

e$BAG$Ne(Bsvn infoe$B$@$H%a%C%;!<%8$,9q:]2=$5$l$F$7$^$C$F$$$F!“7k2L$r=hM}$7$he(B
e$B$&$H$9$k$HLq2p$J$N$Ge(B–xmle$B$r$D$1$?$N$G$9$,!”$3$l$@$He(Bdatee$B$,e(BUTCe$B$K$J$C$Fe(B
e$B$7$^$&$N$G!"$$$:$l$K$;$h=$@5$7$^$9!#e(B

Debian sargee$B$Ne(Bsvn 1.1.4e$B$@$He(Bsvn
infoe$B$Ke(B–xmle$B$,$J$$$G$9!#e(B

e$B@>;3OB9-$G$9!#e(B

At Wed, 14 Mar 2007 19:04:26 +0900,
Nobuyoshi N. wrote:

Merged Frome$B$,$=$N%m!<%+%k%V%i%s%A>e$G$Ne(Brevisione$B$H9M$($F$$$$$s$G$7$g$&$+!#e(B
e$B$=$l$H$be(BMirrored Frome$B$Ne(Brevisione$B$O$^$?JLe(B?

e$B%m!<%+%k%V%i%s%A$G$Ne(Bsvk cie$B$O$7$F$$$J$$$b$N$r8+$F$$$k$N$G!"e(B
svk cie$B$9$k$HJQ$o$k$N$+$b$7$l$^$;$s$,!"e(BMerged Frome$B$N$H$3$m$,e(B
e$B%m!<%+%k$Ne(B~/.svk/locale$B$J$I$N%l%]%8%H%j$Ne(Brevisione$B$G!"e(BCopied
Frome$B$Ne(B
Rev.e$B$Oe(BMirrored Frome$B$Ne(BRev.e$B$HF1$8$K$J$C$F$$$k$h$&$G$9!#e(B

e$B$A$J$$K!"e(Bsvk
coe$B$7$?$H$-$Ke(Bsvn:keywordse$B$Ge(BIde$B$J$I$r@Dj$7$F$$$k$H$-$Ke(B
e$BF~$ke(Brevisione$B$O%
%i!<85$Ne(Brevisione$B$G$O$J$/!"e(B~/.svk/locale$B$J$I$Ne(Brevisione$B$Ke(B
e$B$J$k$N$G!"A4e(Brevisione$B$r%
%i!<$7$F$$$l$P85$Ne(Brevisione$B$h$jBg$-$/$J$j!"e(B
svk sync --skipto
HEADe$B$J$I$GHt$P$7$F$$$l$P85$Ne(Brevisione$B$h$j>.$5$/e(B
e$B$J$j$^$9!#e(B

e$BAG$Ne(Bsvn infoe$B$@$H%a%C%;!<%8$,9q:]2=$5$l$F$7$^$C$F$$$F!“7k2L$r=hM}$7$he(B
e$B$&$H$9$k$HLq2p$J$N$Ge(B–xmle$B$r$D$1$?$N$G$9$,!”$3$l$@$He(Bdatee$B$,e(BUTCe$B$K$J$C$Fe(B
e$B$7$^$&$N$G!"$$$:$l$K$;$h=$@5$7$^$9!#e(B

Debian sargee$B$Ne(Bsvn 1.1.4e$B$@$He(Bsvn infoe$B$Ke(B–xmle$B$,$J$$$G$9!#e(B

svke$B$G$bBP1~$7$F$$$J$$$7!"Hf3SE*?7$7$$%*%W%7%g%s$J$s$G$9$+$M!#e(B

e$B$H$j$"$($:e(B–xmle$B$O;H$o$J$$$h$&$K$7$F$_$^$7$?!#e(Bsvke$B$K$D$$$F$O$^$@J]N1!#e(B

http://svn.collab.net/repos/svn/trunk/CHANGES e$B$K$h$k$He(B
svn infoe$B$Ne(B–xmle$B%*%W%7%g%s$Oe(B1.3.0e$B$+$i$N$h$&$G$9!#e(B
e$B$=$l0JA0$Oe(Bsvn loge$B$@$1e(B–xmle$B$,$"$k$h$&$G$9!#e(B

e$B$J$+$@$G$9!#e(B

At Wed, 14 Mar 2007 15:24:24 +0900,
Kazuhiro NISHIYAMA wrote in [ruby-dev:30577]:

e$BD4$Y$J$$$He(BMirrored Frome$B$N>pJs$O=P$F$3$J$$$h$&$G$9!#e(B
Merged
Frome$B$,$=$N%m!<%+%k%V%i%s%A>e$G$Ne(Brevisione$B$H9M$($F$$$$$s$G$7$g$&$+!#e(B
e$B$=$l$H$be(BMirrored Frome$B$Ne(Brevisione$B$O$^$?JLe(B?

e$BAG$Ne(Bsvn infoe$B$@$H%a%C%;!<%8$,9q:]2=$5$l$F$7$^$C$F$$$F!“7k2L$r=hM}$7$he(B
e$B$&$H$9$k$HLq2p$J$N$Ge(B–xmle$B$r$D$1$?$N$G$9$,!”$3$l$@$He(Bdatee$B$,e(BUTCe$B$K$J$C$Fe(B
e$B$7$^$&$N$G!"$$$:$l$K$;$h=$@5$7$^$9!#e(B

Debian sargee$B$Ne(Bsvn 1.1.4e$B$@$He(Bsvn infoe$B$Ke(B–xmle$B$,$J$$$G$9!#e(B

svke$B$G$bBP1~$7$F$$$J$$$7!"Hf3SE*?7$7$$%*%W%7%g%s$J$s$G$9$+$M!#e(B

e$B$H$j$"$($:e(B–xmle$B$O;H$o$J$$$h$&$K$7$F$_$^$7$?!#e(Bsvke$B$K$D$$$F$O$^$@J]N1!#e(B

Index: Makefile.in

— Makefile.in (revision 12066)
+++ Makefile.in (working copy)
@@ -80,4 +80,6 @@ SETUP =
EXTSTATIC = @EXTSTATIC@

+RUBYBUILDTOOLS = $(srcdir)/tool/
+
RM = rm -f
NM = @NM@
@@ -185,2 +187,5 @@ distclean-local::
ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP)
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -o$@ -c ext/extinit.c
+
+revision-up:

  • @$(RUBYBUILDTOOLS)ifchange $(srcdir)/revision.h $(srcdir)/new_rev.h
    Index: common.mk
    ===================================================================
    — common.mk (revision 12066)
    +++ common.mk (working copy)
    @@ -92,5 +92,7 @@ TESTWORKDIR = testwork
    BOOTSTRAPRUBY = $(MINIRUBY)

-all: $(MKFILES) $(PREP) $(RBCONFIG) $(LIBRUBY)
+VCS = svn
+
+all: $(MKFILES) $(PREP) $(REVISION_UP) $(RBCONFIG) $(LIBRUBY)
@$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS)
prog: $(PROGRAM) $(WPROGRAM)
@@ -531,5 +533,5 @@ variable.$(OBJEXT): {$(VPATH)}variable.c
version.$(OBJEXT): {$(VPATH)}version.c {$(VPATH)}ruby.h config.h
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \

  • {$(VPATH)}version.h
  • {$(VPATH)}version.h {$(VPATH)}$(REVISION_H)

compile.$(OBJEXT): {$(VPATH)}compile.c {$(VPATH)}yarvcore.h
@@ -605,5 +607,5 @@ vm_macro.inc: $(srcdir)/vm_macro.def
$(BASERUBY) $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) vm_macro.inc

-incs: $(INSNS)
+incs: $(INSNS) $(REVISION_UP)

docs:
@@ -667,2 +669,7 @@ vtune: miniruby$(EXEEXT)
dist: $(PROGRAM)
$(RUNRUBY) $(srcdir)/distruby.rb
+
+revision-up: new_rev.h
+
+{$(VPATH)}new_rev.h: PHONY

  • $(RUBYBUILDTOOLS)$(VCS)-info info --xml | sed -nf
    $(srcdir)/tool/$(VCS)-info.sed > $@
    Index: configure.in
    ===================================================================
    — configure.in (revision 12066)
    +++ configure.in (working copy)
    @@ -1673,4 +1673,14 @@ AC_CONFIG_FILES(Makefile, [{
    echo; test x"$EXEEXT" = x || echo ‘miniruby: miniruby$(EXEEXT)’
    test “$RUBY_INSTALL_NAME$EXEEXT” = ruby || echo ‘ruby: $(PROGRAM);’
  • echo
  • echo “### revision information”
  • if test “grep '^\#include \"revision\.h\"' ${srcdir}/version.h”;
    then
  •  echo "REVISION_H  = revision.h"
    
  •  echo "REVISION_UP = revision-up"
    
  • else
  •  echo "REVISION_H  = version.h"
    
  •  echo "REVISION_UP ="
    
  • fi
  • echo
    sed [‘s/{$([^(){}])[^{}]}//g’] ${srcdir}/common.mk
    } >> Makefile], [RUBY_INSTALL_NAME=$RUBY_INSTALL_NAME EXEEXT=$EXEEXT])
    Index: version.c
    ===================================================================
    — version.c (revision 12066)
    +++ version.c (working copy)
    @@ -19,4 +19,5 @@ const char ruby_release_date[] = RUBY_RE
    const char ruby_platform[] = RUBY_PLATFORM;
    const int ruby_patchlevel = RUBY_PATCHLEVEL;
    +const int ruby_revision = RUBY_REVISION;

void
@@ -31,4 +32,5 @@ Init_version(void)
rb_define_global_const(“RUBY_PLATFORM”, p);
rb_define_global_const(“RUBY_PATCHLEVEL”,
INT2FIX(RUBY_PATCHLEVEL));

  • rb_define_global_const(“RUBY_REVISION”, INT2FIX(RUBY_REVISION));
    }

@@ -36,5 +38,6 @@ void
ruby_show_version(void)
{

  • printf(“ruby %s (%s patchlevel %d) [%s]\n”, RUBY_VERSION,
    RUBY_RELEASE_DATE, RUBY_PATCHLEVEL, RUBY_PLATFORM);
  • printf(“ruby %s (%s %s %d) [%s]\n”, RUBY_VERSION,
    RUBY_RELEASE_DATE,
  • RUBY_RELEASE_STR, RUBY_RELEASE_NUM, RUBY_PLATFORM);
    
    fflush(stdout);
    }
    Index: version.h
    ===================================================================
    — version.h (revision 12066)
    +++ version.h (working copy)
    @@ -1,17 +1,44 @@
    #define RUBY_VERSION “1.9.0”
    -#define RUBY_RELEASE_DATE “2007-03-14”
    #define RUBY_VERSION_CODE 190
    -#define RUBY_RELEASE_CODE 20070314
    -#define RUBY_PATCHLEVEL 0

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 0
-#define RUBY_RELEASE_YEAR 2007
-#define RUBY_RELEASE_MONTH 3
-#define RUBY_RELEASE_DAY 14
+#define RUBY_PATCHLEVEL 0
+#include “revision.h”

+#define RUBY_BIRTH_YEAR 1993
+#define RUBY_BIRTH_MONTH 2
+#define RUBY_BIRTH_DAY 24
+
+#if RUBY_VERSION_TEENY > 0 && RUBY_PATCHLEVEL < 5000
+#define RUBY_RELEASE_STR “patchlevel”
+#define RUBY_RELEASE_NUM RUBY_PATCHLEVEL
+#else
+#ifdef RUBY_BRANCH_NAME
+#define RUBY_RELEASE_STR RUBY_BRANCH_NAME
+#else
+#define RUBY_RELEASE_STR “revision”
+#endif
+#define RUBY_RELEASE_NUM RUBY_REVISION
+#endif
+
+#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
RUBY_EXTERN const char ruby_release_date[];
RUBY_EXTERN const char ruby_platform[];
RUBY_EXTERN const int ruby_patchlevel;
+#endif
Index: tool/ifchange

— tool/ifchange (revision 0)
+++ tool/ifchange (revision 0)
@@ -0,0 +1,16 @@
+#!/bin/sh
+# usage: ifchange target temporary
+
+target="$1"
+temp="$2"
+if [ “$temp” = - ]; then

  • temp=“tmpdata$$.tmp~”
  • cat > “$temp” || exit $?
    +fi
    +if cmp “$target” “$temp” >/dev/null 2>&1; then
  • echo “$target unchanged”
  • rm -f “$temp”
    +else
  • echo “$target updated”
  • mv -f “$temp” “$target”
    +fi

Property changes on: tool/ifchange


Name: svn:executable

Name: svn:eol-style

  • LF

Index: tool/revision.sed

— tool/revision.sed (revision 0)
+++ tool/revision.sed (revision 0)
@@ -0,0 +1,5 @@
+#!/bin/sed -f
+/^#include “revision.h”/{
+r revision.h
+d
+}

Property changes on: tool/revision.sed


Name: svn:eol-type

  • LF
    Name: svn:executable

Index: tool/svn-info

— tool/svn-info (revision 0)
+++ tool/svn-info (revision 0)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+LANG=C LC_ALL=C LC_TIME=C LC_MESSAGES=C TZ=GMT-9
+export LANG
+export LC_ALL
+export LC_TIME
+export LC_MESSAGES
+export TZ
+exec svn info “$@”

Property changes on: tool/svn-info


Name: svn:executable

Name: svn:eol-style

  • LF

Index: tool/svn-info.sed

— tool/svn-info.sed (revision 0)
+++ tool/svn-info.sed (revision 0)
@@ -0,0 +1,27 @@
+#!/bin/sed -nf
+s|^[^:]* ||
+/^Root:/{H;g;/\nURL:/!b}
+/^URL:/{H;g;/\nRoot:/!b}
+/^Rev: /{s//#define RUBY_REVISION /p;b}
+/^Date:
(([1-9][0-9])-(0
([1-9][0-9]))-(0([1-9][0-9])))./{

  • s//
    +DATE “\1”
    +CODE \2\3\5
    +YEAR \2
    +MONTH \4
    +DAY \6
    +/
  • s/\n*$//
  • s/\n([^\n])/\n#define RUBY_RELEASE_\1/g
  • s/^\n*//
  • p
  • n
    +}
    +s/(.)(\nURL:[^\n])/\2\1/
    +s/(.)(\nRoot:[^\n])/\2\1/
    +/^\nRoot:([^\n]*)\nURL:\1//{
  • s///
  • s|^branches/||
  • s/^[^\n]*/#define RUBY_BRANCH_NAME “&”/
  • P;D
    +}

Property changes on: tool/svn-info.sed


Name: svn:executable

Name: svn:eol-style

  • LF

Index: win32/Makefile.sub

— win32/Makefile.sub (revision 12066)
+++ win32/Makefile.sub (working copy)
@@ -51,5 +51,6 @@ AR = lib -nologo
PURIFY =
AUTOCONF = autoconf
-RM = $(COMSPEC) /C $(srcdir:/=)\win32\rm.bat
+RUBYBUILDTOOLS = $(COMSPEC) /C $(srcdir:/=)\win32
+RM = $(RUBYBUILDTOOLS)rm.bat
!if !defined(BASERUBY)
BASERUBY = ruby
@@ -197,4 +198,12 @@ ASMEXT = asm
INSTALLED_LIST= .installed.list

+!if [find “revision.h” $(srcdir:/=)\version.h > nul] == 0
+REVISION_H = revision.h
+REVISION_UP = revision-up
+!else
+REVISION_H = version.h
+REVISION_UP =
+!endif
+
WINMAINOBJ = winmain.$(OBJEXT)
MINIOBJS = dmydln.$(OBJEXT)
@@ -219,5 +228,5 @@ config.status: $(CONFIG_H)
$(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub
@echo Creating config.h

  • @$(COMSPEC) /C $(srcdir:/=)\win32\ifchange.bat config.h <<
  • @$(RUBYBUILDTOOLS)ifchange config.h <<
    #if _MSC_VER != $(MSC_VER)
    #error MSC version unmatch
    @@ -561,2 +570,5 @@ dir.$(OBJEXT) win32.$(OBJEXT): {$(srcdir
    ext/extinit.obj: ext/extinit.c $(SETUP)
    $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fo$@ -c ext/extinit.c

+revision-up:

  • @$(RUBYBUILDTOOLS)ifchange $(srcdir:/=)\revision.h
    $(srcdir:/=)\new_rev.h
    Index: win32/svn-info.bat
    ===================================================================
    — win32/svn-info.bat (revision 0)
    +++ win32/svn-info.bat (revision 0)
    @@ -0,0 +1,7 @@
    +@echo off

+set LANG=C

+set LC_ALL=C

+set LC_TIME=C

+set LC_MESSAGES=C

+set TZ=GMT-9

+svn info %*

Property changes on: win32/svn-info.bat

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:30564] release code and revision number”
on Wed, 14 Mar 2007 04:01:20 +0900, Nobuyoshi N.
[email protected] writes:

|SVNe$B$X$N0\9T0JMhe(Bversion.he$B$N<+F099?7$,$G$-$J$/$J$C$?$N$H!“F|C10Le(B
|e$B$G$O$”$^$jLr$KN)$?$J$$$3$H$b$"$k$N$G!“e(BSVNe$B$+$i%3%s%Q%$%k$7$?$H$-e(B
|e$B$K$O0UL#$N$J$$e(Bpatchlevele$B$N$+$o$j$Ke(Brevisione$B$rI=<($9$k$h$&$K$7$?e(B
|e$B$$$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+!#e(B

e$B;d$O<j85$G<+F099?7$7$F$^$9!#e(B

e$B$=$l$O$H$b$+$/!“e(Brevisione$B$NI=<($H$$$&%”%$%G%#%“$=$N$b$N$O$^$“e(B
e$B$=$s$J$K0-$/$J$$$H;W$&$N$G$9$,!”<j85$Oe(Bsvke$B$de(Bgite$B$G1?MQ$7$F$$$ke(B
e$B4D6-$H$$$&$N$O$=$l$J$j$K$”$j$=$&$G$9$+$i!"e(Bsvn infoe$B$r;H$&$H$$e(B
e$B$&$N$O$A$g$C$H6Z$,0-$$5$$,$7$^$9!#e(B

e$BA0ED$5$s$N0Fe(B[ruby-dev:30567]e$B$N$h$&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+0900e$B$NItJ,$r8+$Fe(BUTCe$B$KJQ49$9$k$o$1$K$O$$e(B
e$B$+$J$$$N$G$7$g$&$+!#e(B
e$B%W%i%C%H%U%)!<%`$K$h$C$F=q<0$,0[$J$k$H$+e(B?

e$B@.@%$G$9!#e(B

Shugo M. wrote:

e$B$N$h$&$K$J$k$h$&$G$9$,!"e(B+0900e$B$NItJ,$r8+$Fe(BUTCe$B$KJQ49$9$k$o$1$K$O$$e(B
e$B$+$J$$$N$G$7$g$&$+!#e(B
e$B%W%i%C%H%U%)!<%`$K$h$C$F=q<0$,0[$J$k$H$+e(B?

e$B$H$j$"$($:e(B Subversion e$B$N<BAu$r8+$F$_$?$H$3$m!"e(B
http://svn.collab.net/repos/svn/trunk/subversion/libsvn_subr/subst.c
http://svn.collab.net/repos/svn/trunk/subversion/libsvn_subr/time.c
GMT Offset e$B$r<h$C$FMh$F:n$C$F$$$k$h$&$J$N$G!"e(B
Subversion e$B<BAu$J$i$P%W%i%C%H%U%)!<%`$K$O0MB8$7$J$5$=$&$G$9!#e(B

e$B$b$C$H$b!"F|IU$,M_$7$$$J$ie(B $Id$ e$B$NJ}$,e(B ISO 8601
e$B8GDj$J$N$G3Z$+$b!#e(B

e$B$J$+$@$G$9!#e(B

At Thu, 15 Mar 2007 01:36:41 +0900,
Yukihiro M. wrote in [ruby-dev:30583]:

|SVNe$B$X$N0\9T0JMhe(Bversion.he$B$N<+F099?7$,$G$-$J$/$J$C$?$N$H!“F|C10Le(B
|e$B$G$O$”$^$jLr$KN)$?$J$$$3$H$b$"$k$N$G!“e(BSVNe$B$+$i%3%s%Q%$%k$7$?$H$-e(B
|e$B$K$O0UL#$N$J$$e(Bpatchlevele$B$N$+$o$j$Ke(Brevisione$B$rI=<($9$k$h$&$K$7$?e(B
|e$B$$$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+!#e(B

e$B;d$O<j85$G<+F099?7$7$F$^$9!#e(B

e$B$@$+$ie(B#ifdef RUBY_EXTERNe$B$,>C$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