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 {
120120$year += 1900;
121121quiet_print " ==> This year: $year \n " ;
122122
123- # Find the top-level OMPI source tree dir
123+ # Find the top-level source tree dir in a git repo
124124my $start = cwd();
125125my $top = $start ;
126- while (! -f " $top /Makefile.ompi-rules " ) {
126+ while (! -d " $top /.git " ) {
127127 chdir (" .." );
128128 $top = cwd();
129- die " Can't find top-level Open MPI directory"
129+ die " Can't find top-level repository directory"
130130 if ($top eq " /" );
131131}
132132chdir ($start );
133133
134- quiet_print " ==> Top-level Open MPI dir: $top \n " ;
134+ quiet_print " ==> Top-level repository dir: $top \n " ;
135135quiet_print " ==> Current directory: $start \n " ;
136136
137137# Select VCS used to obtain modification info. Choose in increasing priority
You can’t perform that action at this time.
0 commit comments