The R Project SVN R

Rev

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

Rev 4580 Rev 7217
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# ${R_HOME}/bin/BATCH
3
# ${R_HOME}/bin/BATCH
4
 
4
 
-
 
5
REVISION='$Revision: 1.5 $'
-
 
6
VERSION=`set - ${REVISION}; echo ${2}`
-
 
7
USAGE_MSG="Usage: R BATCH [options] infile [outfile]"
-
 
8
 
5
OPTS="--restore --save --no-readline"
9
OPTS="--restore --save --no-readline"
6
 
10
 
7
while test -n "${1}"; do
11
while test -n "${1}"; do
8
    case ${1} in
12
  case ${1} in
-
 
13
    -h|--help|-\?)
-
 
14
      echo "${USAGE_MSG}"; exit 0 ;;
-
 
15
    -V|--version)
-
 
16
      echo "${VERSION}"; exit 0 ;;
9
	--) shift; break ;;
17
    --) shift; break ;;
10
	--vsize|--nsize|-v|-n)
18
    --vsize|--nsize|-v|-n)
11
	    OPTS="${OPTS} ${1} ${2}"; shift 2 ;;
19
      OPTS="${OPTS} ${1} ${2}"; shift 2 ;;
12
	-*) OPTS="${OPTS} ${1}"; shift ;;
20
    -*) OPTS="${OPTS} ${1}"; shift ;;
13
	*)  break ;;
21
    *)  break ;;
14
    esac
22
  esac
15
done
23
done
16
 
24
 
17
IN=${1}
25
IN=${1}
18
OUT=${2-`basename ${1} .R`.Rout}
26
OUT=${2-`basename ${1} .R`.Rout}
19
 
27