The R Project SVN R

Rev

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

Rev 52126 Rev 52127
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: 52126 $'
8
revision='$Rev: 52127 $'
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}; then
-
 
171
      this=`basename ${1}`
170
    if ${index} && test `basename ${1}`="base"; then
172
      if test ${this} = "base"; then
171
       index=false
173
        index=false
172
       echo "not indexing base package"
174
        echo "_not_ indexing 'base' package"
-
 
175
      fi
173
    fi
176
    fi
174
  else
177
  else
175
    if test -d ${1}/man; then
178
    if test -d ${1}/man; then
176
      dir=${1}/man
179
      dir=${1}/man
177
    else
180
    else