blob: 493f41b351830d6076b02bd61871aa530b542be9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#!/bin/sh
# Shell wrapper for R executable.
# Just sets a few environment items
RHOME=PREFIX/share/R
export RHOME
if [ "$1" = "RHOME" ]
then
echo $RHOME; exit 0
fi
if [ "$1" = "SHLIB" ]
then
shift
exec sh $RHOME/etc/SHLIB $*
fi
if [ "$1" = "COMPILE" ]
then
shift
exec sh $RHOME/etc/COMPILE $*
fi
if [ "$1" = "INSTALL" ]
then
shift
exec sh $RHOME/etc/INSTALL $*
fi
if [ "$1" = "REMOVE" ]
then
shift
exec sh $RHOME/etc/REMOVE $*
fi
if [ "$1" = -xxgdb ]
then
shift
DEBUGGER=xxgdb
fi
if [ "$1" = -gdb ]
then
shift
DEBUGGER=gdb
fi
# Default Printer Paper Size
# Choose one of the following
# R_PAPERSIZE="a4"
# R_PAPERSIZE="letter"
# R_PAPERSIZE="none"
R_PAPERSIZE=a4
export R_PAPERSIZE
# Default Print Command
# Choose one of the following
# R_PRINTCMD="lpr"
# R_PRINTCMD="lp"
R_PRINTCMD=lpr
export R_PRINTCMD
if [ $DEBUGGER ]
then
exec $DEBUGGER $RHOME/bin/R.binary
else
exec $RHOME/bin/R.binary $*
fi
|