From: akl Date: Mon, 27 Aug 2007 13:51:47 +0000 (+0000) Subject: Correct path for creating test file. X-Git-Tag: IMP_BR_4~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d570a60211d49bd35997f5ff9f68db2500c5b680;p=tools%2Finstall.git Correct path for creating test file. --- diff --git a/config_files/checkFortran.sh b/config_files/checkFortran.sh index ebdd67a..d0f661c 100755 --- a/config_files/checkFortran.sh +++ b/config_files/checkFortran.sh @@ -51,13 +51,13 @@ for prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fo done if test -n "$FORT"; then - cat >conftest.f <<_ACEOF + cat >${DIR}/ftest.f <<_ACEOF program main end _ACEOF - $FORT conftest.f > /dev/null - rm -f conftest.* + $FORT ${DIR}/ftest.f > /dev/null + rm -f ${DIR}/ftest.* exit $? else # Fortran compiler was not found @@ -76,7 +76,7 @@ find_libraries(){ } PROCEDURE=$1 -test $# -eq 2 && INST_DIR=$2 +test $# -eq 2 && DIR=$2 $PROCEDURE