File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ all: Makefile DESCRIPTION
3434 @$(ECHO ) " building package '$( pkg) '"
3535 @$(MKINSTALLDIRS ) $(top_builddir ) /library/$(pkg )
3636 @$(MKINSTALLDIRS ) $(top_builddir ) /library/$(pkg ) /misc
37+ @$(ECHO ) $(abs_top_srcdir ) \
38+ > $(top_builddir ) /library/$(pkg ) /misc/top.txt
3739 @$(MAKE ) mkR1 mkdesc2 $(WRE_DATA )
3840 @$(MAKE ) mksrc
3941 @if ! test -f $(top_builddir ) /library/$(pkg ) /R/$(pkg ) ; then \
Original file line number Diff line number Diff line change @@ -61,3 +61,10 @@ rm(C_parseLatex)
6161 toset <- ! (names(op.tools ) %in% names(.Options ))
6262 if (any(toset )) options(op.tools [toset ])
6363}
64+
65+ .R_top_srcdir_file_path <-
66+ system.file(" misc" , " top.txt" , package = " tools" )
67+ .R_top_srcdir <- if (nzchar(.R_top_srcdir_file_path )) {
68+ readLines(.R_top_srcdir_file_path )
69+ } else " "
70+ rm(.R_top_srcdir_file_path )
You can’t perform that action at this time.
0 commit comments