aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-08-07 11:56:48 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-08-07 12:00:52 +0100
commitfd483c8df4576758a3bff3bccf8067c40032b99a (patch)
tree8a155d7204642cdaeeae23ff815d9d6117b9f215 /reproduce/software
parentf9fa4fd518d0f49b3176603c4c6ccabf78fd2bcf (diff)
Removed temporary files to check Fortarn compiler
Until now, the Fortran compiler check wouldn't delete the files it creates in the temporary software building directory. With this commit, the cleaning steps have been added.
Diffstat (limited to 'reproduce/software')
-rwxr-xr-xreproduce/software/bash/configure.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/reproduce/software/bash/configure.sh b/reproduce/software/bash/configure.sh
index 9c99f65..be9c635 100755
--- a/reproduce/software/bash/configure.sh
+++ b/reproduce/software/bash/configure.sh
@@ -974,14 +974,15 @@ EOF
fi
# See if the Fortran compiler works
- gfortran_works=0
testprog=$tmpblddir/test-f
testsource=$tmpblddir/test.f
echo; echo; echo "Checking host Fortran compiler...";
echo " PRINT *, \"... Fortran Compiler works.\"" > $testsource
echo " END" >> $testsource
- if gfortran $testsource -o$testprog && $testprog; then gfortran_works=1;
+ if gfortran $testsource -o$testprog && $testprog; then
+ rm $testsource $testprog
else
+ rm $testsource
cat <<EOF
______________________________________________________