Permalink
Browse files

Rename RHOME to R_HOME.

git-svn-id: https://svn.r-project.org/R/trunk@4580 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information...
hornik
hornik committed May 11, 1999
1 parent 9960d11 commit 3f7418701dc557f6d7d57b3da6a32cacc27272e5
Showing with 256 additions and 267 deletions.
  1. +3 −3 Makefile.in
  2. +1 −1 afm/Makefile.in
  3. +36 −34 configure.mac
  4. +9 −8 configure.win
  5. +1 −1 debian/rules
  6. +1 −1 demos/Makefile.in
  7. +2 −2 demos/dynload/zero.R
  8. +1 −1 doc/Makefile.in
  9. +5 −9 doc/keyword-test.in
  10. +1 −1 doc/manual/Makefile.in
  11. +1 −1 doc/manual/Rd2dvi.tex
  12. +2 −2 doc/manual/writing-Rd.tex
  13. +2 −2 etc/Makeconf.in
  14. +1 −1 etc/Makefile.in
  15. +1 −1 etc/Rdconvlib.pl
  16. +7 −7 etc/buildlib.pl
  17. +1 −1 etc/html-layout.pl
  18. +1 −1 src/Makefile.in
  19. +1 −1 src/appl/Makefile.in
  20. +1 −1 src/gnome/Makefile.in
  21. +24 −25 src/gnome/system.c
  22. +1 −1 src/include/Makefile.in
  23. +1 −1 src/include/README
  24. +11 −12 src/library/Makefile.in
  25. +1 −1 src/library/base/INDEX
  26. +1 −1 src/library/base/Makefile.in
  27. +1 −1 src/library/base/R/read.R
  28. +1 −1 src/library/base/R/system.unix.R
  29. +1 −1 src/library/base/man/INSTALL.Rd
  30. +5 −4 src/library/base/man/REMOVE.Rd
  31. +3 −2 src/library/base/man/RHOME.Rd
  32. +1 −1 src/library/base/man/contour.Rd
  33. +1 −1 src/library/base/man/copyright.Rd
  34. +1 −1 src/library/base/man/deriv.Rd
  35. +1 −1 src/library/base/man/getenv.Rd
  36. +12 −11 src/library/base/man/help.start.Rd
  37. +1 −1 src/library/base/man/license.Rd
  38. +1 −1 src/library/base/man/options.Rd
  39. +2 −2 src/library/base/man/prompt.Rd
  40. +1 −1 src/library/base/man/read.fwf.Rd
  41. +1 −1 src/library/eda/Makefile.in
  42. +2 −2 src/library/eda/src/Makefile.in
  43. +1 −1 src/library/lqs/Makefile.in
  44. +2 −3 src/library/lqs/src/Makefile.in
  45. +1 −1 src/library/modreg/Makefile.in
  46. +2 −2 src/library/modreg/src/Makefile.in
  47. +1 −1 src/library/mva/Makefile.in
  48. +2 −3 src/library/mva/src/Makefile.in
  49. +1 −1 src/library/profile/Makefile.in
  50. +1 −1 src/library/stepfun/Makefile.in
  51. +1 −1 src/main/Makefile.in
  52. +1 −1 src/nmath/Makefile.in
  53. +2 −2 src/scripts/BATCH
  54. +3 −3 src/scripts/COMPILE.in
  55. +11 −11 src/scripts/INSTALL.in
  56. +2 −2 src/scripts/Makefile.in
  57. +7 −9 src/scripts/R.sh.in
  58. +5 −5 src/scripts/REMOVE.in
  59. +3 −3 src/scripts/Rd2dvi
  60. +3 −3 src/scripts/Rd2txt
  61. +6 −6 src/scripts/Rdconv.in
  62. +2 −2 src/scripts/SHLIB.in
  63. +18 −18 src/scripts/build-help.in
  64. +1 −1 src/scripts/filename
  65. +1 −1 src/scripts/help
  66. +14 −14 src/scripts/help.links
  67. +3 −3 src/scripts/massage-Examples
  68. +1 −1 src/unix/Makefile.in
  69. +1 −5 src/unix/devPS.c
  70. +1 −1 tests/Examples/Makefile.in
  71. +2 −5 tests/Makefile.in
  72. +5 −5 tools/GETSYMBOLS
View
@@ -1,5 +1,5 @@
#
-# ${RHOME}/Makefile
+# ${R_HOME}/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -50,8 +50,8 @@ install: all installdirs
done)
@echo "Installing executables ..."
@$(INSTALL_PROGRAM) bin/R.binary $(rhome)/bin
- @cat bin/R | sed "s@RHOME=.*@RHOME=$(rhome)@" > $(rhome)/bin/R
- @cat bin/R | sed "s@RHOME=.*@RHOME=$(rhome)@" > $(bindir)/R
+ @cat bin/R | sed "s@R_HOME=.*@R_HOME=$(rhome)@" > $(rhome)/bin/R
+ @cat bin/R | sed "s@R_HOME=.*@R_HOME=$(rhome)@" > $(bindir)/R
@chmod 755 $(bindir)/R $(rhome)/bin/R
@for f in `ls bin/* | grep -v '^bin/\(R\|R.binary\)\**$$'`; do \
$(INSTALL) $${f} $(rhome)/bin; \
View
@@ -1,5 +1,5 @@
#
-# ${RHOME}/afm/Makefile
+# ${R_HOME}/afm/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
@@ -10,37 +10,37 @@
# bu hand.
-RHOME=`pwd`
-MHOME=`pwd`/Macintosh
+R_HOME=`pwd`
+M_HOME=`pwd`/Macintosh
# Remove any prior version
echo "Removing previous source tree"
-rm -rf $MHOME
+rm -rf ${M_HOME}
# (1) Create the directory structure
echo "Creating directory structure"
-mkdir $MHOME
-mkdir $MHOME/library
-mkdir $MHOME/library/base
-mkdir $MHOME/library/base/R
-mkdir $MHOME/src
-mkdir $MHOME/src/include
-mkdir $MHOME/src/appl
-mkdir $MHOME/src/main
-mkdir $MHOME/src/nmath
-mkdir $MHOME/src/f2clib
-mkdir $MHOME/src/regex
+mkdir ${M_HOME}
+mkdir ${M_HOME}/library
+mkdir ${M_HOME}/library/base
+mkdir ${M_HOME}/library/base/R
+mkdir ${M_HOME}/src
+mkdir ${M_HOME}/src/include
+mkdir ${M_HOME}/src/appl
+mkdir ${M_HOME}/src/main
+mkdir ${M_HOME}/src/nmath
+mkdir ${M_HOME}/src/f2clib
+mkdir ${M_HOME}/src/regex
# (2) Create the basic include files needed for compilation
echo "Installing include files"
-cp $RHOME/src/include/*.h $MHOME/src/include
-cp $RHOME/src/macintosh/Platform.h $MHOME/src/include
+cp ${R_HOME}/src/include/*.h ${M_HOME}/src/include
+cp ${R_HOME}/src/macintosh/Platform.h ${M_HOME}/src/include
# This code assembles the table of statically loaded C and Fortran
# code which is to be accessed via .C and .Fortran calls.
@@ -50,13 +50,13 @@ sed '
/Rsock/d
s/F77_SUBROUTINE(\(.*\))/int \1_();/
s/C_FUNCTION(\(.*\))/int \1();/
-' $RHOME/src/appl/ROUTINES > $MHOME/src/include/FFDecl.h
+' ${R_HOME}/src/appl/ROUTINES > ${M_HOME}/src/include/FFDecl.h
sed '
/^#/d
/Rsock/d
s/F77_SUBROUTINE(\(.*\))/ "\1_", \1_,/
s/C_FUNCTION(\(.*\))/ "\1", \1,/
-' $RHOME/src/appl/ROUTINES > $MHOME/src/include/FFTab.h
+' ${R_HOME}/src/appl/ROUTINES > ${M_HOME}/src/include/FFTab.h
# (3) C and Fortran Code
@@ -66,18 +66,18 @@ echo "Copying C and Fortran code"
echo "Converting Fortran with f2c"
-cp $RHOME/src/appl/*.[chf] $MHOME/src/appl
-cd $MHOME/src/appl
+cp ${R_HOME}/src/appl/*.[chf] ${M_HOME}/src/appl
+cd ${M_HOME}/src/appl
f2c *.f 2> /dev/null
rm *.f
-cd $RHOME
-
-cp $RHOME/src/main/*.[chy] $MHOME/src/main
-cp $RHOME/src/nmath/*.[chy] $MHOME/src/nmath
-cp $RHOME/src/regex/*.[chy] $MHOME/src/regex
-cp $RHOME/src/f2clib/*.[chy] $MHOME/src/f2clib
-cp $RHOME/src/main/*.[chy] $MHOME/src/main
-cd $MHOME/src/main
+cd ${R_HOME}
+
+cp ${R_HOME}/src/main/*.[chy] ${M_HOME}/src/main
+cp ${R_HOME}/src/nmath/*.[chy] ${M_HOME}/src/nmath
+cp ${R_HOME}/src/regex/*.[chy] ${M_HOME}/src/regex
+cp ${R_HOME}/src/f2clib/*.[chy] ${M_HOME}/src/f2clib
+cp ${R_HOME}/src/main/*.[chy] ${M_HOME}/src/main
+cd ${M_HOME}/src/main
byacc gram.y
mv y.tab.c gram.c
rm gram.y
@@ -86,22 +86,24 @@ rm gram.y
echo "Interpreted function libraries"
-cd $RHOME/src/library/base/R
-cat `ls *.R | sed '/system.*/d'` system.mac.R > $MHOME/library/base/R/base
-cat $RHOME/src/library/profile/Common.R \
- $RHOME/src/library/profile/Rprofile.mac > $MHOME/library/base/R/Rprofile
+cd ${R_HOME}/src/library/base/R
+cat `ls *.R | sed '/system.*/d'` system.mac.R \
+ > ${M_HOME}/library/base/R/base
+cat ${R_HOME}/src/library/profile/Common.R \
+ ${R_HOME}/src/library/profile/Rprofile.mac \
+ > ${M_HOME}/library/base/R/Rprofile
# (5) Manual entries etc (just grab the unix ones for now)
echo "Manual entries, examples and data"
-cd $RHOME
+cd ${R_HOME}
cp -R library/LibIndex Macintosh/library
cp -R library/base/INDEX Macintosh/library/base
cp -R library/base/data Macintosh/library/base
cp -R library/base/R-ex Macintosh/library/base
mkdir Macintosh/library/base/help
-for i in `ls $RHOME/library/base/help`
+for i in `ls ${R_HOME}/library/base/help`
do
sed 's/.//g' library/base/help/$i > Macintosh/library/base/help/$i
done
View
@@ -1,16 +1,16 @@
#!/bin/sh
-RHOME=`pwd`
+R_HOME=`pwd`
-cp $RHOME/src/windows/Platform.h $RHOME/src/include
-cp $RHOME/src/unix/PostScript.c $RHOME/src/windows/PostScript.c
-cp $RHOME/src/unix/devPS.c $RHOME/src/windows/devPS.c
+cp ${R_HOME}/src/windows/Platform.h ${R_HOME}/src/include
+cp ${R_HOME}/src/unix/PostScript.c ${R_HOME}/src/windows/PostScript.c
+cp ${R_HOME}/src/unix/devPS.c ${R_HOME}/src/windows/devPS.c
# This code assembles the table of statically loaded C and Fortran
# code which is to be accessed via .C and .Fortran calls.
-cd $RHOME/src
+cd ${R_HOME}/src
#we take only the C source for windows
@@ -20,7 +20,7 @@ sh GETSYMBOLS
# Create the library of interpreted functions
-cd $RHOME/src/library/base/funs
+cd ${R_HOME}/src/library/base/funs
mkdir -p ../../../library/base/R
cat `ls R/[a-z]* | sed '/CVS/d; /~$$/d; /\.orig$$/d; \
/\.bak$$/d; /^core$$/d; /system.*/d'` R/system.win| \
@@ -30,7 +30,8 @@ cp INDEX TITLE ../../../library/base
mkdir -p ../../../library/base/data
cp `ls data/[a-z]*` ../../../library/base/data
-cd $RHOME/etc
+cd ${R_HOME}/etc
make install-html
-cp $RHOME/src/library/profile/Rprofile.win $RHOME/library/base/R/Rprofile
+cp ${R_HOME}/src/library/profile/Rprofile.win \
+ ${R_HOME}/library/base/R/Rprofile
View
@@ -33,7 +33,7 @@ binary-arch: build
dh_clean -k
dh_installdirs
make install prefix=`pwd`/debian/tmp/usr
- sed -e '/^RHOME=.*/s::RHOME=/usr/lib/R:' \
+ sed -e '/^R_HOME=.*/s::R_HOME=/usr/lib/R:' \
-e '/R.binary /s::R.binary --vsize 8M --nsize 400000 :'\
< bin/R > debian/tmp/usr/bin/R
dh_installdocs
View
@@ -1,5 +1,5 @@
#
-# ${RHOME}/demos/Makefile
+# ${R_HOME}/demos/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
@@ -13,8 +13,8 @@
dyn.load(paste("zero", .Platform$dynlib.ext, sep=""))
##-- you may need to change this to
-## dyn.load("<RHOME>/demos/dynload/zero.so")
-##-- substituting the proper path for <RHOME>,
+## dyn.load("<R_HOME>/demos/dynload/zero.so")
+##-- substituting the proper path for <R_HOME>,
## unless you are executing R from the directory containing zero.so
zero <- function(f, guesses, tol = 1e-7) {
View
@@ -1,5 +1,5 @@
#
-# ${RHOME}/doc/Makefile
+# ${R_HOME}/doc/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
@@ -9,23 +9,23 @@ use File::Basename;
use Cwd;
$cwd=getcwd();
-if($ENV{"RHOME"}){
- $RHOME=$ENV{"RHOME"};
+if($ENV{"R_HOME"}){
+ $R_HOME=$ENV{"R_HOME"};
}
else{
chdir(dirname($0) . "/..");
- $RHOME=getcwd();
+ $R_HOME=getcwd();
}
chdir($cwd);
-require "$RHOME/etc/Rdconvlib.pl";
+require "$R_HOME/etc/Rdconvlib.pl";
@knownoptions = ("debug|d", "help|h");
GetOptions (@knownoptions) || usage();
usage() if $opt_help;
-print stderr "RHOME: '$RHOME'; cwd='$cwd'\n" if $opt_debug;
+print stderr "R_HOME: '$R_HOME'; cwd='$cwd'\n" if $opt_debug;
##
file:
@@ -64,12 +64,8 @@ file:
}
-
-
sub usage {
-
print "keyword-test [ -d(ebug) ] [ -h(elp) ] __.Rd-files__ \n";
print "Example: $0 ../src/library/base/eda/*.Rd\n\n";
exit 0;
}
-
View
@@ -1,5 +1,5 @@
#
-# ${RHOME}/doc/manual/Makefile
+# ${R_HOME}/doc/manual/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
@@ -1,4 +1,4 @@
-%--- This is used for the ${RHOME}/etc/Rd2dvi command :
+%--- This is used for the ${R_HOME}/etc/Rd2dvi command :
\documentclass[a4paper]{book}
\usepackage{Rd2}
\usepackage{makeidx}
@@ -28,7 +28,7 @@ \section{Documentation Format}\label{sec:doc-format}
The help files are written in a form and syntax---closely resembling
\TeX{} and \LaTeX{}---which can be processed into a variety of formats,
including \LaTeX, [TN]roff, and \HTML. The translation is carried out
-by the \textsc{perl} script \file{Rdconv} in \file{\$RHOME/bin}.
+by the \textsc{perl} script \file{Rdconv} in \file{\$R\_HOME/bin}.
For a given R function \code{myfunction}, use the \R{} command
\code{prompt(myfunction)} to produce the file \file{myfunction.Rd}. The
@@ -125,7 +125,7 @@ \section{Documentation Format}\label{sec:doc-format}
\CMDv{keyword}{key\_1}
\COMMENT{Use at least one keyword out of the list} \\
\CMDv{keyword}{key\_2}
- \COMMENT{in \file{\$RHOME/doc/KEYWORDS}}
+ \COMMENT{in \file{\$R\_HOME/doc/KEYWORDS}}
\end{quote}
\section{Sectioning}
View
@@ -1,11 +1,11 @@
# @configure_input@
#
-# ${RHOME}/etc/Makeconf
+# ${R_HOME}/etc/Makeconf
CC = @CC@
CFLAGS = @CFLAGS@
CPICFLAGS = @CPICFLAGS@
-CPPFLAGS = -I$(RHOME)/include
+CPPFLAGS = -I$(R_HOME)/include
FC = @FC@
FFLAGS = @FFLAGS@
FLIBS = @FLIBS@
View
@@ -1,5 +1,5 @@
#
-# ${RHOME}/etc/Makefile
+# ${R_HOME}/etc/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
@@ -33,7 +33,7 @@
## ==> Consequence: Allow \verbatim{ ...} only *within* other
## top-level blocks ...
-require "$RHOME/etc/html-layout.pl";
+require "$R_HOME/etc/html-layout.pl";
# names of unique text blocks, these may NOT appear MORE THAN ONCE!
View
@@ -23,7 +23,7 @@
use Cwd;
use File::Basename;
-require "$RHOME/etc/html-layout.pl";
+require "$R_HOME/etc/html-layout.pl";
if($opt_dosnames){
@@ -49,7 +49,7 @@ sub buildinit {
die("Package $pkg does not exist\n") unless (-d $pkg);
}
else{
- $pkg="$RHOME/src/library/base";
+ $pkg="$R_HOME/src/library/base";
}
chdir $currentdir;
@@ -61,7 +61,7 @@ sub buildinit {
chdir $currentdir;
}
else{
- $lib="$RHOME/library";
+ $lib="$R_HOME/library";
}
chdir $currentdir;
@@ -208,7 +208,7 @@ sub read_anindex {
-### Build $RHOME/doc/html/packages.html from the $pkg/TITLE files
+### Build $R_HOME/doc/html/packages.html from the $pkg/TITLE files
sub build_htmlpkglist {
@@ -217,7 +217,7 @@ sub build_htmlpkglist {
my %htmltitles = read_titles($lib);
my $key;
- open(htmlfile, ">$RHOME/doc/html/packages.$HTML");
+ open(htmlfile, ">$R_HOME/doc/html/packages.$HTML");
print htmlfile html_pagehead("Package Index", ".",
"index.$HTML", "Top",
@@ -359,9 +359,9 @@ sub build_htmlfctlist {
my %htmltitles = read_functiontitles($lib);
my $key;
- open(htmlfile, ">$RHOME/doc/html/function.$HTML");
+ open(htmlfile, ">$R_HOME/doc/html/function.$HTML");
- print htmlfile html_pagehead("Functions installed in RHOME", ".",
+ print htmlfile html_pagehead("Functions installed in R_HOME", ".",
"index.$HTML", "Top",
"packages.$HTML", "Packages");
View
@@ -1,7 +1,7 @@
# The head of a html page (e.g. used for packages list)
# Arguments:
# $title of the page
-# $top relative path to $RHOME/doc/html (must be "." if we
+# $top relative path to $R_HOME/doc/html (must be "." if we
# already are there)
# $up filename of the upper file
# $uptext alternate text for upper file
Oops, something went wrong.

0 comments on commit 3f74187

Please sign in to comment.