The R Project SVN R

Rev

Rev 26719 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26719 Rev 27410
Line 6... Line 6...
6
##  Rcmd Rd2dvi.sh `grep -l "\\keyword{distr" \
6
##  Rcmd Rd2dvi.sh `grep -l "\\keyword{distr" \
7
##                  /path/to/Rsrc/src/library/base/man/*.Rd | sort | uniq`
7
##                  /path/to/Rsrc/src/library/base/man/*.Rd | sort | uniq`
8
 
8
 
9
R_PAPERSIZE=${R_PAPERSIZE-a4}
9
R_PAPERSIZE=${R_PAPERSIZE-a4}
10
 
10
 
11
revision='$Revision: 1.17 $'
11
revision='$Revision: 1.18 $'
12
version=`set - ${revision}; echo ${2}`
12
version=`set - ${revision}; echo ${2}`
13
version="Rd2dvi.sh ${version}
13
version="Rd2dvi.sh ${version}
14
 
14
 
15
Copyright (C) 2000-2001 The R Core Development Team.
15
Copyright (C) 2000-2001 The R Core Development Team.
16
This is free software; see the GNU General Public Licence version 2
16
This is free software; see the GNU General Public Licence version 2
Line 100... Line 100...
100
if ${debug}; then set -x; fi
100
if ${debug}; then set -x; fi
101
 
101
 
102
get_dcf_field () {
102
get_dcf_field () {
103
  ## Get one field including all continuation lines from a DCF file.
103
  ## Get one field including all continuation lines from a DCF file.
104
  ws="[ 	]"              # space and tab
104
  ws="[ 	]"              # space and tab
105
  sed -n "/^${1}:/,/^[^ ]/{p;}" ${2} | \
105
  sed -n "/^${1}:/,/^[^ 	]/{p;}" ${2} | \
106
    sed -n "/^${1}:/{s/^${1}:${ws}*//;p;}
106
    sed -n "/^${1}:/{s/^${1}:${ws}*//;p;}
107
            /^${ws}/{s/^${ws}*//;p;}"
107
            /^${ws}/{s/^${ws}*//;p;}"
108
}
108
}
109
 
109
 
110
Rdconv_dir_or_files_to_LaTeX () {
110
Rdconv_dir_or_files_to_LaTeX () {