The R Project SVN R

Rev

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

Rev 40234 Rev 41897
Line 1... Line 1...
1
#! /bin/sh
1
#! /bin/sh
2
 
2
 
3
revision='$Rev: 40234 $'
3
revision='$Rev: 41897 $'
4
version=`set - ${revision}; echo ${2}`
4
version=`set - ${revision}; echo ${2}`
5
version="Stangle front-end r${version}
5
version="Stangle front-end r${version}
6
 
6
 
7
Copyright (C) 2006 The R Core Development Team.
7
Copyright (C) 2006-7 The R Core Development Team.
8
This is free software; see the GNU General Public Licence version 2
8
This is free software; see the GNU General Public Licence version 2
9
or later for copying conditions.  There is NO warranty."
9
or later for copying conditions.  There is NO warranty."
10
 
10
 
11
usage="Usage: R CMD Stangle file
11
usage="Usage: R CMD Stangle file
12
 
12
 
Line 25... Line 25...
25
     echo "${version}"; exit 0 ;;
25
     echo "${version}"; exit 0 ;;
26
esac
26
esac
27
 
27
 
28
R_EXE="${R_HOME}/bin/R"
28
R_EXE="${R_HOME}/bin/R"
29
echo "library(\"utils\"); Stangle(\"$1\")" | \
29
echo "library(\"utils\"); Stangle(\"$1\")" | \
30
  "${R_EXE}" --no-save --no-restore --quiet
30
  "${R_EXE}" --no-restore --slave