The R Project SVN R

Rev

Rev 47522 | Rev 49400 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 47522 Rev 49398
Line 32... Line 32...
32
export TEXINPUTS
32
export TEXINPUTS
33
 
33
 
34
. "${R_HOME}/etc${R_ARCH}/Renviron"
34
. "${R_HOME}/etc${R_ARCH}/Renviron"
35
export `sed 's/^ *#.*//; s/^\(.*\)=.*/\1/' "${R_HOME}/etc${R_ARCH}/Renviron"`
35
export `sed 's/^ *#.*//; s/^\(.*\)=.*/\1/' "${R_HOME}/etc${R_ARCH}/Renviron"`
36
 
36
 
-
 
37
extra=
37
case "${1}" in
38
case "${1}" in
38
  perl)
39
  perl)
39
    cmd="${PERL}" ;;
40
    cmd="${PERL}" ;;
40
  awk)
41
  awk)
41
    cmd="${AWK}"  ;;
42
    cmd="${AWK}"  ;;
-
 
43
## this was a separate command prior to 2.10.0
-
 
44
  Rd2txt)
-
 
45
    cmd="${R_HOME}/bin/Rdconv"
-
 
46
    extra="-t txt"
-
 
47
    ;;
42
  *)
48
  *)
43
    if test -x "${R_HOME}/bin/${1}"; then
49
    if test -x "${R_HOME}/bin/${1}"; then
44
      cmd="${R_HOME}/bin/${1}"
50
      cmd="${R_HOME}/bin/${1}"
45
    else
51
    else
46
      cmd="${1}"
52
      cmd="${1}"
47
    fi
53
    fi
48
    ;;
54
    ;;
49
esac
55
esac
50
shift
56
shift
51
 
57
 
52
exec "${cmd}" "${@}"
58
exec "${cmd}" ${extra} "${@}"
53
 
59
 
54
### Local Variables: ***
60
### Local Variables: ***
55
### mode: sh ***
61
### mode: sh ***
56
### sh-indentation: 2 ***
62
### sh-indentation: 2 ***
57
### End: ***
63
### End: ***