The R Project SVN R

Rev

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

Rev 52112 Rev 52126
Line 3... Line 3...
3
## Examples:
3
## Examples:
4
##  R CMD Rd2dvi /path/to/Rsrc/src/library/base/man/Normal.Rd
4
##  R CMD Rd2dvi /path/to/Rsrc/src/library/base/man/Normal.Rd
5
##  R CMD Rd2dvi `grep -l "\\keyword{distr" \
5
##  R CMD Rd2dvi `grep -l "\\keyword{distr" \
6
##                  /path/to/Rsrc/src/library/stats/man/*.Rd | sort | uniq`
6
##                  /path/to/Rsrc/src/library/stats/man/*.Rd | sort | uniq`
7
 
7
 
8
revision='$Rev: 52112 $'
8
revision='$Rev: 52126 $'
9
version=`set - ${revision}; echo ${2}`
9
version=`set - ${revision}; echo ${2}`
10
version="Rd2dvi: ${R_VERSION} (r${version})
10
version="Rd2dvi: ${R_VERSION} (r${version})
11
 
11
 
12
Copyright (C) 2000-2010 The R Core Development Team.
12
Copyright (C) 2000-2010 The R Core Development Team.
13
This is free software; see the GNU General Public License version 2
13
This is free software; see the GNU General Public License version 2
Line 165... Line 165...
165
  elif test -f ${1}/DESCRIPTION.in && \
165
  elif test -f ${1}/DESCRIPTION.in && \
166
       test -n "`grep '^Priority: *base' ${1}/DESCRIPTION.in`"; then
166
       test -n "`grep '^Priority: *base' ${1}/DESCRIPTION.in`"; then
167
    echo "Hmm ... looks like a package from the R distribution"
167
    echo "Hmm ... looks like a package from the R distribution"
168
    dir=${1}
168
    dir=${1}
169
    test -z "${output}" && output="`basename ${1}`.${out_ext}"
169
    test -z "${output}" && output="`basename ${1}`.${out_ext}"
-
 
170
    if ${index} && test `basename ${1}`="base"; then
-
 
171
       index=false
-
 
172
       echo "not indexing base package"
-
 
173
    fi
170
  else
174
  else
171
    if test -d ${1}/man; then
175
    if test -d ${1}/man; then
172
      dir=${1}/man
176
      dir=${1}/man
173
    else
177
    else
174
      dir=${1}
178
      dir=${1}