The R Project SVN R

Rev

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

Rev 41830 Rev 41886
Line 35... Line 35...
35
use Text::Wrap;
35
use Text::Wrap;
36
 
36
 
37
## Don't buffer output.
37
## Don't buffer output.
38
$| = 1;
38
$| = 1;
39
 
39
 
40
my $revision = ' $Rev: 41830 $ ';
40
my $revision = ' $Rev: 41886 $ ';
41
my $version;
41
my $version;
42
my $name;
42
my $name;
43
$revision =~ / ([\d\.]*) /;
43
$revision =~ / ([\d\.]*) /;
44
$version = $1;
44
$version = $1;
45
($name = $0) =~ s|.*/||;
45
($name = $0) =~ s|.*/||;
Line 2057... Line 2057...
2057
            $makevars = " -f " . &file_path($testsrcdir, "Makevars");
2057
            $makevars = " -f " . &file_path($testsrcdir, "Makevars");
2058
        }
2058
        }
2059
        else {
2059
        else {
2060
            open(MAKEVARS, "> Makevars");
2060
            open(MAKEVARS, "> Makevars");
2061
            print MAKEVARS "makevars = -f Makevars\n";
2061
            print MAKEVARS "makevars = -f Makevars\n";
2062
            print MAKEVARS "srcdir = $testsrcdir\n";
-
 
2063
            ## at least windows does not pass env correctly to make
2062
            ## at least windows does not pass env correctly to make
2064
            print MAKEVARS "R_LIBS = $ENV{'R_LIBS'}\n";
2063
            print MAKEVARS "R_LIBS = $ENV{'R_LIBS'}\n";
-
 
2064
	    ## No longer needed now that we dircopy() all of
-
 
2065
	    ## $testsrcdir:
-
 
2066
            ##   print MAKEVARS "srcdir = $testsrcdir\n";
2065
            print MAKEVARS "VPATH = \$(srcdir)\n\n";
2067
            ##   print MAKEVARS "VPATH = \$(srcdir)\n\n";
2066
            print MAKEVARS "test-src-1 =";
2068
            print MAKEVARS "test-src-1 =";
2067
	    foreach my $file (sort &list_files_with_exts($testdir, "R")) {
2069
	    foreach my $file (sort &list_files_with_exts($testdir, "R")) {
2068
                print MAKEVARS "\\\n " . basename($file);
2070
                print MAKEVARS "\\\n " . basename($file);
2069
            }
2071
            }
2070
            print MAKEVARS "\n";
2072
            print MAKEVARS "\n";