Commit 902e88de authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

give a hint regarding missing variable error

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: 5360
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 7ca0b6fb
......@@ -55,13 +55,13 @@ test -s ./install.bashrc && . ./install.bashrc || \
}
# test and report environment variables
echo
echo "Environment variables used in TFSoftware Makefiles as found in your"
echo "shell environment or set by ./install.bashrc (not all of them might"
echo "be required for the current package):"
echo "Checking environment variables used in TFSoftware Makefiles as"
echo "found in your shell environment or set by ./install.bashrc:"
#
MISSING=0
MISSVAR=""
echo
echo "Following variables are used by all packages!:"
echo "The following variables are used by all packages!:"
repvar LOCBINDIR || { MISSING=1; MISSVAR="$MISSVAR LOCBINDIR"; }
repvar LOCLIBDIR || { MISSING=1; MISSVAR="$MISSVAR LOCLIBDIR"; }
repvar LOCINCLUDEDIR || { MISSING=1; MISSVAR="$MISSVAR LOCINCLUDEDIR"; }
......@@ -69,13 +69,14 @@ if test 0$MISSING -gt 0
then
echo
echo 'WARNING!'
echo "The following variables are not set:"
echo "The following variables are not set; the installation likely fails:"
echo $MISSVAR | fold -w 70 -s | sed -e "s/^/ /"
fi
#
MISSING=0
MISSVAR=""
echo
echo "Following variables might be set automatically if missing:"
echo "The following variables might be set automatically if missing:"
repvar CC || { MISSING=1; MISSVAR="$MISSVAR CC"; }
repvar CXX || { MISSING=1; MISSVAR="$MISSVAR CXX"; }
repvar FC || { MISSING=1; MISSVAR="$MISSVAR FC"; }
......@@ -86,17 +87,17 @@ then
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 "The 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_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_BROWSER || { MISSING=1; MISSVAR="$MISSVAR TF_BROWSER"; }
repvar LD_LIBRARY_PATH || { MISSING=1; MISSVAR="$MISSVAR LD_LIBRARY_PATH"; }
if test 0$MISSING -gt 0
then
echo
......@@ -104,6 +105,7 @@ then
echo "The following variables are not set:"
echo $MISSVAR | fold -w 70 -s | sed -e "s/^/ /"
fi
#
if test 0$(printenv LD_LIBRARY_PATH | tr ':' '\n' | grep $LOCLIBDIR | wc -l) -lt 1
then
echo
......@@ -116,6 +118,13 @@ then
echo "probably will fail to execute. Please check README.compile"
echo "if in doubt."
fi
#
echo
echo "If the installation fails with an error message like"
echo " Makefile:NN: *** ERROR: missing variable VVVVVVVVVVV. Stop."
echo "please check README.compile for details regarding mandatory"
echo "environment variables."
#
# ============================================================================
# package specific contents are added below this line
# ---------------------------------------------------
Markdown is supported
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