Merge pull request #3016 from rhc54/topic/copyright
Be a little less OMPI-centric on checking for the top-level directory
Этот коммит содержится в:
Коммит
57f6646cbe
@ -120,18 +120,18 @@ my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
|
|||||||
$year += 1900;
|
$year += 1900;
|
||||||
quiet_print "==> This year: $year\n";
|
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 $start = cwd();
|
||||||
my $top = $start;
|
my $top = $start;
|
||||||
while (! -f "$top/Makefile.ompi-rules") {
|
while (! -d "$top/.git") {
|
||||||
chdir("..");
|
chdir("..");
|
||||||
$top = cwd();
|
$top = cwd();
|
||||||
die "Can't find top-level Open MPI directory"
|
die "Can't find top-level repository directory"
|
||||||
if ($top eq "/");
|
if ($top eq "/");
|
||||||
}
|
}
|
||||||
chdir($start);
|
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";
|
quiet_print "==> Current directory: $start\n";
|
||||||
|
|
||||||
# Select VCS used to obtain modification info. Choose in increasing priority
|
# Select VCS used to obtain modification info. Choose in increasing priority
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user