The R Project SVN R

Rev

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

Rev 39141 Rev 40233
Line 1... Line 1...
1
#! /bin/sh
1
#! /bin/sh
2
 
2
 
-
 
3
revision='$Rev: 40094 $'
-
 
4
version=`set - ${revision}; echo ${2}`
-
 
5
version="Stangle front-end r${version}
-
 
6
 
-
 
7
Copyright (C) 2006 The R Core Development Team.
-
 
8
This is free software; see the GNU General Public Licence version 2
-
 
9
or later for copying conditions.  There is NO warranty."
-
 
10
 
-
 
11
usage="Usage: R CMD Stangle file
-
 
12
 
-
 
13
A simple front-end for Stangle()
-
 
14
 
-
 
15
Options:
-
 
16
  -h, --help		print short help message and exit
-
 
17
  -v, --version		print Sweave version info and exit
-
 
18
 
-
 
19
Report bugs to <r-bugs@r-project.org>."
-
 
20
 
-
 
21
case ${1} in
-
 
22
  -h|--help)
-
 
23
     echo "${usage}"; exit 0 ;;
-
 
24
  -v|--version)
-
 
25
     echo "${version}"; exit 0 ;;
-
 
26
esac
-
 
27
 
3
R_EXE="${R_HOME}/bin/R"
28
R_EXE="${R_HOME}/bin/R"
4
echo "library(\"utils\"); Stangle(\"$1\")" | \
29
echo "library(\"utils\"); Stangle(\"$1\")" | \
5
  "${R_EXE}" --no-save --no-restore --quiet
30
  "${R_EXE}" --no-save --no-restore --quiet