File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -638,7 +638,16 @@ print_header()
638
638
echo " *** and ask permission to download, build, and install any missing ***"
639
639
echo " *** prerequisites: ***"
640
640
echo " "
641
- tree $opencoarrays_src_dir /doc/dependency_tree | tail -n+2
641
+ # Move to a directory tree whose structure mirrors the dependency tree
642
+ pushd $opencoarrays_src_dir /doc/dependency_tree/ > /dev/null
643
+ if type tree & > /dev/null; then
644
+ # dynamically compute and print the tree, suppressing the final line
645
+ tree opencoarrays | sed ' $d'
646
+ else
647
+ # print the most recently saved static depiction of the tree
648
+ cat opencoarrays-tree.txt
649
+ fi
650
+ popd > /dev/null
642
651
echo " "
643
652
echo " *** All prerequisites will be downloaded to, built in, and installed in ***"
644
653
echo " $opencoarrays_src_dir /install_prerequisites"
@@ -689,7 +698,9 @@ report_results()
689
698
echo " "
690
699
echo " $install_path /bin."
691
700
echo " "
692
- rm $install_path /setup.sh
701
+ if [[ -f $install_path /setup.sh ]]; then
702
+ rm $install_path /setup.sh
703
+ fi
693
704
# Prepend the OpenCoarrays license to the setup.sh script:
694
705
while IFS=' ' read -r line || [[ -n " $line " ]]; do
695
706
echo " # $line " >> $install_path /setup.sh
You can’t perform that action at this time.
0 commit comments