The R Project SVN R

Rev

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

Rev 11515 Rev 11529
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
##
2
##
3
## Rd2txt -- Convert man pages (*.Rd help files) to plain text.
3
## Rd2txt -- Convert man pages (*.Rd help files) to plain text.
4
 
4
 
5
revision='$Revision: 1.6 $'
5
revision='$Revision: 1.7 $'
6
version=`set - ${revision}; echo ${2}`
6
version=`set - ${revision}; echo ${2}`
7
version="Rd2txt ${version}
7
version="Rd2txt ${version}
8
 
8
 
9
Copyright (C) 2000 The R Core Development Team.
9
Copyright (C) 2000 The R Core Development Team.
10
This is free software; see the GNU General Public Licence version 2
10
This is free software; see the GNU General Public Licence version 2
Line 23... Line 23...
23
case "${1}" in
23
case "${1}" in
24
  -h|--help)
24
  -h|--help)
25
    echo "${usage}"; exit 0 ;;
25
    echo "${usage}"; exit 0 ;;
26
  -v|--version)
26
  -v|--version)
27
    echo "${version}"; exit 0 ;;
27
    echo "${version}"; exit 0 ;;
28
  *)
-
 
29
    break ;;
-
 
30
esac
28
esac
31
 
29
 
32
exec ${R_HOME}/bin/Rdconv -t txt ${1}
30
exec ${R_HOME}/bin/Rdconv -t txt ${1}
33
 
31
 
34
### Local Variables: ***
32
### Local Variables: ***