@@ -459,6 +459,18 @@ find_or_install()
459
459
printf " $this_script : Using the $package executable $executable found in the PATH.\n"
460
460
YACC=yacc
461
461
stack_push acceptable_in_path $package $executable
462
+ # Remove bison from the dependency stack
463
+ stack_pop dependency_pkg package_done
464
+ stack_pop dependency_exe executable_done
465
+ stack_pop dependency_path package_done_path
466
+ # Put $package onto the script_installed log
467
+ stack_push script_installed package_done
468
+ stack_push script_installed executable_done
469
+ stack_push script_installed package_done_path
470
+ # Halt the recursion and signal that there are no prerequisites to build
471
+ stack_push dependency_pkg " none"
472
+ stack_push dependency_exe " none"
473
+ stack_push dependency_path " none"
462
474
fi
463
475
464
476
else # $package not in PATH and not yet installed by this script
@@ -479,7 +491,7 @@ find_or_install()
479
491
fi
480
492
fi
481
493
482
- echo " $this_script : Starting dependency stack (top to bottom = left to right):"
494
+ echo " $this_script : Updated dependency stack (top to bottom = left to right):"
483
495
stack_print dependency_pkg
484
496
485
497
stack_size dependency_pkg num_stacked
@@ -677,10 +689,12 @@ report_results()
677
689
echo " "
678
690
echo " $install_path /bin."
679
691
echo " "
692
+ rm $install_path /setup.sh
680
693
# Prepend the OpenCoarrays license to the setup.sh script:
681
694
while IFS=' ' read -r line || [[ -n " $line " ]]; do
682
695
echo " # $line " >> $install_path /setup.sh
683
696
done < " $opencoarrays_src_dir /COPYRIGHT-BSD3"
697
+ echo " # " >> $install_path /setup.sh
684
698
echo " # Execute this script via the folowing commands: " >> $install_path /setup.sh
685
699
echo " # cd $install_path " >> $install_path /setup.sh
686
700
echo " # source setup.sh " >> $install_path /setup.sh
@@ -733,7 +747,6 @@ report_results()
733
747
echo " fi " >> $install_path /setup.sh
734
748
fi
735
749
echo " *** Before using caf, cafrun, or build, please execute the following command ***"
736
- echo " *** Before using caf, cafrun, or build, please execute the following command ***"
737
750
echo " *** or add it to your login script and launch a new shell (or the equivalent ***"
738
751
echo " *** for your shell if you are not using a bash shell): ***"
739
752
echo " "
0 commit comments