The R Project SVN R

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9941 hornik 1
#!/bin/sh
11515 hornik 2
##
3
## Rd2txt -- Convert man pages (*.Rd help files) to plain text.
9941 hornik 4
 
11529 hornik 5
revision='$Revision: 1.7 $'
11515 hornik 6
version=`set - ${revision}; echo ${2}`
7
version="Rd2txt ${version}
8
 
9
Copyright (C) 2000 The R Core Development Team.
10
This is free software; see the GNU General Public Licence version 2
11
or later for copying conditions.  There is NO warranty."
12
 
13
usage="Usage: R CMD Rd2txt [options] file
14
 
15
Generate plain text output from the Rd source specified by file.
16
 
17
Options:
18
  -h, --help		print short help message and exit
19
  -v, --version		print version info and exit  
20
 
21
Report bugs to <r-bugs@r-project.org>."  
22
 
23
case "${1}" in
24
  -h|--help)
25
    echo "${usage}"; exit 0 ;;
26
  -v|--version)
27
    echo "${version}"; exit 0 ;;
28
esac
29
 
11205 hornik 30
exec ${R_HOME}/bin/Rdconv -t txt ${1}
9941 hornik 31
 
32
### Local Variables: ***
33
### mode: sh ***
34
### sh-indentation: 2 ***
35
### End: ***