The R Project SVN R

Rev

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

Rev 47550 Rev 47667
Line 33... Line 33...
33
use Text::Wrap;
33
use Text::Wrap;
34
 
34
 
35
## Don't buffer output.
35
## Don't buffer output.
36
$| = 1;
36
$| = 1;
37
 
37
 
38
my $revision = ' $Rev: 47550 $ ';
38
my $revision = ' $Rev: 47667 $ ';
39
my $version;
39
my $version;
40
my $name;
40
my $name;
41
$revision =~ / ([\d\.]*) /;
41
$revision =~ / ([\d\.]*) /;
42
$version = $1;
42
$version = $1;
43
($name = $0) =~ s|.*/||;
43
($name = $0) =~ s|.*/||;
Line 66... Line 66...
66
my @known_options = ("help|h", "version|v", "outdir|o:s", "library|l:s",
66
my @known_options = ("help|h", "version|v", "outdir|o:s", "library|l:s",
67
		     "no-clean", "no-examples", "no-tests", "no-latex",
67
		     "no-clean", "no-examples", "no-tests", "no-latex",
68
		     "use-gct" => \$opt_use_gct, "no-codoc",
68
		     "use-gct" => \$opt_use_gct, "no-codoc",
69
		     "install=s" => \$opt_install, "no-install",
69
		     "install=s" => \$opt_install, "no-install",
70
		     "no-vignettes", "use-valgrind" => \$opt_use_valgrind,
70
		     "no-vignettes", "use-valgrind" => \$opt_use_valgrind,
-
 
71
		     "install-args=s" => \$opt_install_args,
71
		     "rcfile=s" => \$opt_rcfile,
72
		     "rcfile=s" => \$opt_rcfile,
72
		     "check-subdirs=s" => \$opt_subdirs);
73
		     "check-subdirs=s" => \$opt_subdirs);
73
GetOptions(@known_options) or usage();
74
GetOptions(@known_options) or usage();
74
 
75
 
75
R_version("R add-on package checker", $version) if $opt_version;
76
R_version("R add-on package checker", $version) if $opt_version;
Line 702... Line 703...
702
	    else {
703
	    else {
703
		my $use_install_log =
704
		my $use_install_log =
704
		    (($opt_install =~ /^check/) ||
705
		    (($opt_install =~ /^check/) ||
705
		     $R_check_use_install_log ||
706
		     $R_check_use_install_log ||
706
		     !(-t STDIN && -t STDOUT));
707
		     !(-t STDIN && -t STDOUT));
707
		my $INSTALL_opts = "";
708
		my $INSTALL_opts = $opt_install_args;
708
		$INSTALL_opts = "--fake" if($opt_install eq "fake");
709
		$INSTALL_opts = "--fake" if($opt_install eq "fake");
709
		my $cmd;
710
		my $cmd;
710
		if($WINDOWS) {
711
		if($WINDOWS) {
711
		    ## avoid some quoting hell
712
		    ## avoid some quoting hell
712
		    my $pkgd = Win32::GetShortPathName($pkgdir);
713
		    my $pkgd = Win32::GetShortPathName($pkgdir);
Line 2777... Line 2778...
2777
      --no-tests        do not run code in tests subdirectory
2778
      --no-tests        do not run code in tests subdirectory
2778
      --no-vignettes    do not check vignettes in Sweave format
2779
      --no-vignettes    do not check vignettes in Sweave format
2779
      --no-latex        do not run LaTeX on help files
2780
      --no-latex        do not run LaTeX on help files
2780
      --use-gct         use 'gctorture(TRUE)' when running examples/tests
2781
      --use-gct         use 'gctorture(TRUE)' when running examples/tests
2781
      --use-valgrind    use 'valgrind' when running examples/tests/vignettes
2782
      --use-valgrind    use 'valgrind' when running examples/tests/vignettes
-
 
2783
      --install-args=	command-line args to be passed to INSTALL
2782
      --check-subdirs=default|yes|no
2784
      --check-subdirs=default|yes|no
2783
                        run checks on the package subdirectories
2785
                        run checks on the package subdirectories
2784
			(default is yes for a tarball, no otherwise)
2786
			(default is yes for a tarball, no otherwise)
2785
      --rcfile=FILE     read configuration values from FILE
2787
      --rcfile=FILE     read configuration values from FILE
2786
 
2788