# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
# Project : SALOME
# Module : Installation Wizard
-# Copyright : 2002-2007 CEA
+# Copyright : 2002-2008 CEA
#
# This script is the part of the SALOME installation procedure.
#
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 -o ${DIR}/ftest.out ${DIR}/ftest.f > /dev/null
+ rm -f ${DIR}/ftest.*
exit $?
else
# Fortran compiler was not found
}
find_libraries(){
- source ${INST_DIR}/env_products.sh
- ldd ${INST_DIR}/*/lib/salome/*.so | grep not
+ source ${DIR}/env_products.sh
+ ldd ${DIR}/*/lib/salome/*.so | grep not
if test $? -eq 0; then
exit 1
else
}
PROCEDURE=$1
-test $# -eq 2 && INST_DIR=$2
+DIR=$2
$PROCEDURE