The R Project SVN R

Rev

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

Rev 7380 Rev 8243
Line 24... Line 24...
24
 
24
 
25
use Getopt::Long;
25
use Getopt::Long;
26
use File::Basename;
26
use File::Basename;
27
use Cwd;
27
use Cwd;
28
 
28
 
29
my $revision = ' $Revision: 1.9 $ ';
29
my $revision = ' $Revision: 1.10 $ ';
30
my $version;
30
my $version;
31
my $name;
31
my $name;
32
 
32
 
33
$revision =~ / ([\d\.]*) /;
33
$revision =~ / ([\d\.]*) /;
34
$version = $1;
34
$version = $1;
35
($name = $0) =~ s|.*/||;
35
($name = $0) =~ s|.*/||;
36
 
36
 
37
sub version {
37
sub version {
38
  print STDERR <<END;
38
  print STDERR <<END;
39
Rdconv $version
39
Rdconv $version
40
Copyright (C) 1997 Fritz Leisch.
40
Copyright (C) 1997-2000 R Core Development Team
41
This is free software; see the GNU General Public Licence version 2
41
This is free software; see the GNU General Public Licence version 2
42
or later for copying conditions.  There is NO warranty.    
42
or later for copying conditions.  There is NO warranty.    
43
END
43
END
44
  exit 0;
44
  exit 0;
45
}
45
}
46
 
46
 
47
sub usage {
47
sub usage {
48
  print STDERR <<END;
48
  print STDERR <<END;
49
Usage: $name [options] FILE
49
Usage: R CMD $name [options] FILE
50
 
50
 
51
Convert R documentation in FILE to other formats such as plain text,
51
Convert R documentation in FILE to other formats such as plain text,
52
HTML or LaTeX.
52
HTML or LaTeX.
53
 
53
 
54
Options:
54
Options: