@@ -459,6 +459,18 @@ find_or_install()
459459 printf " $this_script : Using the $package executable $executable found in the PATH.\n"
460460 YACC=yacc
461461 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"
462474 fi
463475
464476 else # $package not in PATH and not yet installed by this script
@@ -479,7 +491,7 @@ find_or_install()
479491 fi
480492 fi
481493
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):"
483495 stack_print dependency_pkg
484496
485497 stack_size dependency_pkg num_stacked
@@ -677,10 +689,12 @@ report_results()
677689 echo " "
678690 echo " $install_path /bin."
679691 echo " "
692+ rm $install_path /setup.sh
680693 # Prepend the OpenCoarrays license to the setup.sh script:
681694 while IFS=' ' read -r line || [[ -n " $line " ]]; do
682695 echo " # $line " >> $install_path /setup.sh
683696 done < " $opencoarrays_src_dir /COPYRIGHT-BSD3"
697+ echo " # " >> $install_path /setup.sh
684698 echo " # Execute this script via the folowing commands: " >> $install_path /setup.sh
685699 echo " # cd $install_path " >> $install_path /setup.sh
686700 echo " # source setup.sh " >> $install_path /setup.sh
@@ -733,7 +747,6 @@ report_results()
733747 echo " fi " >> $install_path /setup.sh
734748 fi
735749 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 ***"
737750 echo " *** or add it to your login script and launch a new shell (or the equivalent ***"
738751 echo " *** for your shell if you are not using a bash shell): ***"
739752 echo " "
0 commit comments