1
1

Merge pull request #3016 from rhc54/topic/copyright

Be a little less OMPI-centric on checking for the top-level directory
Этот коммит содержится в:
Ralph Castain 2017-02-22 11:32:30 -08:00 коммит произвёл GitHub
родитель fb67c966a8 8ae55429bc
Коммит 57f6646cbe

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

@ -120,18 +120,18 @@ my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
$year += 1900;
quiet_print "==> This year: $year\n";
# Find the top-level OMPI source tree dir
# Find the top-level source tree dir in a git repo
my $start = cwd();
my $top = $start;
while (! -f "$top/Makefile.ompi-rules") {
while (! -d "$top/.git") {
chdir("..");
$top = cwd();
die "Can't find top-level Open MPI directory"
die "Can't find top-level repository directory"
if ($top eq "/");
}
chdir($start);
quiet_print "==> Top-level Open MPI dir: $top\n";
quiet_print "==> Top-level repository dir: $top\n";
quiet_print "==> Current directory: $start\n";
# Select VCS used to obtain modification info. Choose in increasing priority