[Rd] version stamp details missing on current checkout

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Jun 26 15:03:31 CEST 2008


Vincent Carey 525-2265 wrote:

Works for me... what's in your SVN-REVISION file? Notice that there is 
some slightly weird logic to distinguish whether you are building from 
SVN or from tarballs, based on the existence of $(srcdir)/doc/FAQ and 
$(builddir)/non-tarball. If you have the former and not the latter, it 
is assumed that there will be a ready-made SVN-REVISION.

There's a bug in the Makefile, though:

svnonly:
    @if test ! -f "$(srcdir)/doc/FAQ" || test -f non-tarball ; then \
      (cd doc/manual && $(MAKE) front-matter html-non-svn) ; \
      touch non-tarball ; \
      (cd $(srcdir); LC_ALL=C TZ=GMT svn -rHEAD info || $(ECHO) 
"Revision: unknown") 2> /dev/null \
        | sed -n -e '/^Revision/p' -e '/^Last Changed Date/'p \
        | cut -d' ' -f1,2,3,4 > SVN-REVISION-tmp ; \
...etc...

I don't think we want the -rHEAD there since it can cause the version 
stamp to become different from the version of the source files in case 
of an intervening commit.

> this is from a fresh svn checkout:
>
> [stvjc at stvjc1 R-devel]$ ls -tl Makefile
> -rw-rw-r--  1 stvjc stvjc 12833 Jun 26 07:24 Makefile
> [stvjc at stvjc1 R-devel]$ svn up
> At revision 45988.
> [stvjc at stvjc1 R-devel]$ bin/R
>
> R version 2.8.0 Under development (unstable) (--)
> Copyright (C)  The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
> ..
>
>   
>> sessionInfo()
>>     
> R version 2.8.0 Under development (unstable) (--)
> x86_64-unknown-linux-gnu
>
> locale:
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
>
>
> ---
> Vince Carey, PhD
> Assoc. Prof Med (Biostatistics)
> Harvard Medical School
> Channing Laboratory - ph 6175252265 fa 6177311541
> 181 Longwood Ave Boston MA 02115 USA
> stvjc at channing.harvard.edu
>
> The information transmitted in this electronic communica...{{dropped:10}}
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>   


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-devel mailing list