Skip to content

Commit fe1f31e

Browse files
committed
Merge pull request #159 from sourceryinstitute/fix-setup-sh-script
Fix setup sh script
2 parents 1f4ff6d + ade2b2c commit fe1f31e

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

install.sh

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@
5252
# Alternatively, check the dependency stacks for the package before entering the
5353
# main conditional blocks in find_or_install.
5454
#
55-
# __________ Process command-line arguments and environment variables _____________
56-
55+
5756
# Make sure we really exit with correct status when piping function output
5857
set -o pipefail
5958

59+
# __________ Process command-line arguments and environment variables _____________
60+
6061
this_script=`basename $0`
6162

6263
# Interpret the first command-line argument, if present, as the OpenCoarrays installation path.
@@ -799,15 +800,8 @@ report_results()
799800
echo "# $line" >> setup.sh
800801
done < "$opencoarrays_src_dir/LICENSE"
801802
echo "# " >> setup.sh
802-
echo "# Execute this script via the following commands: " >> setup.sh
803-
echo "# cd $install_path " >> setup.sh
804-
echo "# source setup.sh " >> setup.sh
805-
echo " " >> setup.sh
806-
echo "if [[ -z \"\$PATH\" ]]; then " >> setup.sh
807-
echo " export PATH=\"bin\" " >> setup.sh
808-
echo "else " >> setup.sh
809-
echo " export PATH=\"bin\":\$PATH " >> setup.sh
810-
echo "fi " >> setup.sh
803+
echo "# Execute this script via the following command: " >> setup.sh
804+
echo "# source $install_path/setup.sh " >> setup.sh
811805
echo " " >> setup.sh
812806
gcc_install_path=`./build gcc --default --query-path`
813807
if [[ -x "$gcc_install_path/bin/gfortran" ]]; then

0 commit comments

Comments
 (0)