The R Project SVN R

Rev

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

Rev 47459 Rev 47462
Line 5... Line 5...
5
## Examples:
5
## Examples:
6
##  R CMD Rd2dvi /path/to/Rsrc/src/library/base/man/Normal.Rd
6
##  R CMD Rd2dvi /path/to/Rsrc/src/library/base/man/Normal.Rd
7
##  R CMD Rd2dvi `grep -l "\\keyword{distr" \
7
##  R CMD Rd2dvi `grep -l "\\keyword{distr" \
8
##                  /path/to/Rsrc/src/library/stats/man/*.Rd | sort | uniq`
8
##                  /path/to/Rsrc/src/library/stats/man/*.Rd | sort | uniq`
9
 
9
 
10
revision='$Rev: 47459 $'
10
revision='$Rev: 47462 $'
11
version=`set - ${revision}; echo ${2}`
11
version=`set - ${revision}; echo ${2}`
12
version="Rd2dvi r${version}
12
version="Rd2dvi r${version}
13
 
13
 
14
Copyright (C) 2000-2008 The R Core Development Team.
14
Copyright (C) 2000-2008 The R Core Development Team.
15
This is free software; see the GNU General Public License version 2
15
This is free software; see the GNU General Public License version 2
Line 381... Line 381...
381
## Look for encodings
381
## Look for encodings
382
ENCS=`grep '^\\\\\inputencoding' ${build_dir}/Rd2.tex | uniq | \
382
ENCS=`grep '^\\\\\inputencoding' ${build_dir}/Rd2.tex | uniq | \
383
  ${SED} -e 's/^\\\\inputencoding{\(.*\)}/\1/' | \
383
  ${SED} -e 's/^\\\\inputencoding{\(.*\)}/\1/' | \
384
  tr '\na-z0-9' ',a-z0-9' | ${SED} -e s/,$//`
384
  tr '\na-z0-9' ',a-z0-9' | ${SED} -e s/,$//`
385
## some systems have Cyrillic support but it is broken
385
## some systems have Cyrillic support but it is broken
386
if test -n "${_R_NO_CYRILLIC_TEX_}" then 
386
if test -z "${_R_NO_CYRILLIC_TEX_}" ; then
387
  UENCS=`${echo} ${ENCS} | grep utf8
387
  UENCS=`${echo} ${ENCS} | grep utf8`
388
fi`
388
fi
389
#echo "ENCS is ${ENCS}"
389
#echo "ENCS is ${ENCS}"
390
#echo "UENCS is ${UENCS}"
390
#echo "UENCS is ${UENCS}"
391
 
391
 
392
## substitute for the encodings used
392
## substitute for the encodings used
393
mv ${build_dir}/Rd2.tex ${build_dir}/Rd2.tex.pre
393
mv ${build_dir}/Rd2.tex ${build_dir}/Rd2.tex.pre