From fd483c8df4576758a3bff3bccf8067c40032b99a Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Wed, 7 Aug 2019 11:56:48 +0100 Subject: 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. --- reproduce/software/bash/configure.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'reproduce/software') 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 <