1
1

A few more changes for older perl versions

This commit was SVN r2307.
Этот коммит содержится в:
Jeff Squyres 2004-08-25 18:37:14 +00:00
родитель f578d8cf52
Коммит ca8768ef53

Просмотреть файл

@ -278,7 +278,7 @@ sub try_build {
# make the source root # make the source root
if (! -d $srcroot) { if (! -d $srcroot) {
mkdir($srcroot); mkdir($srcroot, 0777);
} }
chdir($srcroot); chdir($srcroot);
@ -300,7 +300,7 @@ sub try_build {
# configure it # configure it
my $config_command = "./configure"; my $config_command = "./configure";
if ($vpath_mode) { if ($vpath_mode) {
mkdir("vpath_build"); mkdir("vpath_build", 0777);
chdir("vpath_build"); chdir("vpath_build");
if ($vpath_mode eq "relative") { if ($vpath_mode eq "relative") {
$config_command = "../configure"; $config_command = "../configure";
@ -335,7 +335,7 @@ sub try_build {
# try compiling and linking a simple C application # try compiling and linking a simple C application
chdir(".."); chdir("..");
if (! -d test) { if (! -d test) {
mkdir("test"); mkdir("test", 0777);
} }
chdir("test"); chdir("test");
open C, ">hello.c"; open C, ">hello.c";
@ -512,7 +512,7 @@ test_abort("Cannot find downloading program -- aborting in despair\n")
# move into the scratch directory, and ensure we have an absolute path # move into the scratch directory, and ensure we have an absolute path
# for it # for it
if (! -d $scratch_root_arg) { if (! -d $scratch_root_arg) {
mkdir($scratch_root_arg); mkdir($scratch_root_arg, 0777);
} }
test_abort("Could not cd to scratch root: $scratch_root_arg\n") test_abort("Could not cd to scratch root: $scratch_root_arg\n")
if (! -d $scratch_root_arg); if (! -d $scratch_root_arg);
@ -523,7 +523,7 @@ chomp($scratch_root_arg);
# ensure some subdirs exist # ensure some subdirs exist
foreach my $dir (qw(downloads)) { foreach my $dir (qw(downloads)) {
if (! -d $dir) { if (! -d $dir) {
mkdir($dir); mkdir($dir, 0777);
} }
} }
@ -611,7 +611,7 @@ WARNING: checksums. Proceeding anyway...\n\n");
# root will be absolute) # root will be absolute)
my $root= "$scratch_root_arg/build-$version"; my $root= "$scratch_root_arg/build-$version";
system("rm -rf $root"); system("rm -rf $root");
mkdir($root); mkdir($root, 0777);
chdir($root); chdir($root);
# loop over all configurations # loop over all configurations