File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -120,18 +120,18 @@ sub quiet_print {
120
120
$year += 1900;
121
121
quiet_print " ==> This year: $year \n " ;
122
122
123
- # Find the top-level OMPI source tree dir
123
+ # Find the top-level source tree dir in a git repo
124
124
my $start = cwd();
125
125
my $top = $start ;
126
- while (! -f " $top /Makefile.ompi-rules " ) {
126
+ while (! -d " $top /.git " ) {
127
127
chdir (" .." );
128
128
$top = cwd();
129
- die " Can't find top-level Open MPI directory"
129
+ die " Can't find top-level repository directory"
130
130
if ($top eq " /" );
131
131
}
132
132
chdir ($start );
133
133
134
- quiet_print " ==> Top-level Open MPI dir: $top \n " ;
134
+ quiet_print " ==> Top-level repository dir: $top \n " ;
135
135
quiet_print " ==> Current directory: $start \n " ;
136
136
137
137
# Select VCS used to obtain modification info. Choose in increasing priority
You can’t perform that action at this time.
0 commit comments