Commit 314ca908 authored by uqchw's avatar uqchw Committed by thomas.forbriger
Browse files

modified snapshot Package installation files

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 5309
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 41403295
...@@ -36,6 +36,10 @@ then ...@@ -36,6 +36,10 @@ then
elif test -x "$(which gfortran)" elif test -x "$(which gfortran)"
then then
export FC="$(which gfortran)" export FC="$(which gfortran)"
if test ! -x "${TF_LINK_FORTRAN}"
then
export TF_LINK_FORTRAN=-lgfortran
fi
fi fi
fi fi
echo FC set to $FC echo FC set to $FC
......
...@@ -27,7 +27,7 @@ repvar() ...@@ -27,7 +27,7 @@ repvar()
fi fi
} }
# #
echo '**** install.sh $Revision$ ****' echo '******* install.sh $Revision$ *******'
# #
cd $(dirname $0) cd $(dirname $0)
SRCROOT=$(pwd) SRCROOT=$(pwd)
...@@ -60,26 +60,49 @@ echo "shell environment or set by ./install.bashrc (not all of them might" ...@@ -60,26 +60,49 @@ echo "shell environment or set by ./install.bashrc (not all of them might"
echo "be required for the current package):" echo "be required for the current package):"
MISSING=0 MISSING=0
MISSVAR="" MISSVAR=""
echo
echo "Following variables are used by all packages!:"
repvar LOCBINDIR || { MISSING=1; MISSVAR="$MISSVAR LOCBINDIR"; } repvar LOCBINDIR || { MISSING=1; MISSVAR="$MISSVAR LOCBINDIR"; }
repvar LOCLIBDIR || { MISSING=1; MISSVAR="$MISSVAR LOCLIBDIR"; } repvar LOCLIBDIR || { MISSING=1; MISSVAR="$MISSVAR LOCLIBDIR"; }
repvar LOCINCLUDEDIR || { MISSING=1; MISSVAR="$MISSVAR LOCINCLUDEDIR"; } repvar LOCINCLUDEDIR || { MISSING=1; MISSVAR="$MISSVAR LOCINCLUDEDIR"; }
repvar SERVERBINDIR || { MISSING=1; MISSVAR="$MISSVAR SERVERBINDIR"; } if test 0$MISSING -gt 0
repvar SERVERLIBDIR || { MISSING=1; MISSVAR="$MISSVAR SERVERLIBDIR"; } then
echo
echo 'WARNING!'
echo "The following variables are not set:"
echo $MISSVAR | fold -w 70 -s | sed -e "s/^/ /"
fi
MISSING=0
MISSVAR=""
echo
echo "Following variables might be set automatically if missing:"
repvar CC || { MISSING=1; MISSVAR="$MISSVAR CC"; } repvar CC || { MISSING=1; MISSVAR="$MISSVAR CC"; }
repvar CXX || { MISSING=1; MISSVAR="$MISSVAR CXX"; } repvar CXX || { MISSING=1; MISSVAR="$MISSVAR CXX"; }
repvar FC || { MISSING=1; MISSVAR="$MISSVAR FC"; } repvar FC || { MISSING=1; MISSVAR="$MISSVAR FC"; }
if test 0$MISSING -gt 0
then
echo
echo 'WARNING!'
echo "The following variables are not set:"
echo $MISSVAR | fold -w 70 -s | sed -e "s/^/ /"
fi
MISSING=0
MISSVAR=""
echo
echo "Following variables are optional or not used by all packages:"
echo "(check README.compile for their purpose)"
repvar TF_LINK_FORTRAN || { MISSING=1; MISSVAR="$MISSVAR TF_LINK_FORTRAN"; } repvar TF_LINK_FORTRAN || { MISSING=1; MISSVAR="$MISSVAR TF_LINK_FORTRAN"; }
repvar TF_LINK_PGPLOT || { MISSING=1; MISSVAR="$MISSVAR TF_LINK_PGPLOT"; } repvar TF_LINK_PGPLOT || { MISSING=1; MISSVAR="$MISSVAR TF_LINK_PGPLOT"; }
repvar PGPLOT_DIR || { MISSING=1; MISSVAR="$MISSVAR PGPLOT_DIR"; }
repvar TF_WWWBASEDIR || { MISSING=1; MISSVAR="$MISSVAR TF_WWWBASEDIR"; } repvar TF_WWWBASEDIR || { MISSING=1; MISSVAR="$MISSVAR TF_WWWBASEDIR"; }
repvar TF_BROWSER || { MISSING=1; MISSVAR="$MISSVAR TF_BROWSER"; } repvar TF_BROWSER || { MISSING=1; MISSVAR="$MISSVAR TF_BROWSER"; }
repvar LD_LIBRARY_PATH || { MISSING=1; MISSVAR="$MISSVAR LD_LIBRARY_PATH"; } repvar LD_LIBRARY_PATH || { MISSING=1; MISSVAR="$MISSVAR LD_LIBRARY_PATH"; }
if test 0$MISSING -gt 0 if test 0$MISSING -gt 0
then then
echo echo
echo 'WARNING!' echo 'WARNING!'
echo "The following variables are not set:" echo "The following variables are not set:"
echo $MISSVAR | fold -w 70 -s | sed -e "s/^/ /" echo $MISSVAR | fold -w 70 -s | sed -e "s/^/ /"
echo "Please check README.compile if in doubt."
fi fi
if test 0$(printenv LD_LIBRARY_PATH | tr ':' '\n' | grep $LOCLIBDIR | wc -l) -lt 1 if test 0$(printenv LD_LIBRARY_PATH | tr ':' '\n' | grep $LOCLIBDIR | wc -l) -lt 1
then then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment