ENH: Updated foamSystemCheck

This commit is contained in:
andy
2011-06-14 12:55:02 +01:00
parent 135edbacdd
commit 2b1052a054

View File

@ -33,8 +33,6 @@
# STATIC VARIABLES # STATIC VARIABLES
# ~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~
FOAM_VERSION=1.6
HLINE="-----------------------------------------------------------------------" HLINE="-----------------------------------------------------------------------"
WIDTH=16 WIDTH=16
unset fatalError unset fatalError
@ -92,7 +90,7 @@ case "$SHELL" in
;; ;;
*) *)
echo "ERROR: Cannot identify the current shell." echo "ERROR: Cannot identify the current shell."
echo " OpenFOAM $FOAM_VERSION is compatible" echo " OpenFOAM $WM_PROJECT_VERSION is compatible"
echo " with csh, tcsh, ksh and bash." echo " with csh, tcsh, ksh and bash."
echo echo
fatalError=true fatalError=true
@ -105,8 +103,8 @@ echo "$(fixlen Host: $WIDTH) $HOST"
if [ $(length $HOST) -eq 0 ] if [ $(length $HOST) -eq 0 ]
then then
echo "ERROR: Cannot stat hostname." echo "ERROR: Cannot stat hostname."
echo " OpenFOAM $FOAM_VERSION needs a valid hostname to function." echo " OpenFOAM $WM_PROJECT_VERSION needs a valid hostname to"
echo " Contact your system administrator. " echo " function. Contact your system administrator."
echo echo
fatalError=true fatalError=true
fi fi
@ -119,7 +117,7 @@ Linux | LinuxAMD64 | SunOS )
;; ;;
*) *)
echo "ERROR: Incompatible operating system \"$OSTYPE\"." echo "ERROR: Incompatible operating system \"$OSTYPE\"."
echo " OpenFOAM $FOAM_VERSION is currently available for " echo " OpenFOAM $WM_PROJECT_VERSION is currently available for "
echo " Linux, LinuxAMD64 and SunOS only." echo " Linux, LinuxAMD64 and SunOS only."
echo echo
fatalError=true fatalError=true
@ -138,7 +136,7 @@ echo "$(fixlen User: $WIDTH) ${USER_NAME}"
if [ $(length $USER_NAME) -eq 0 ] if [ $(length $USER_NAME) -eq 0 ]
then then
echo "ERROR: Cannot stat user name $USER_NAME." echo "ERROR: Cannot stat user name $USER_NAME."
echo " OpenFOAM $FOAM_VERSION needs a valid user name." echo " OpenFOAM $WM_PROJECT_VERSION needs a valid user name."
echo " Contact your system administrator. " echo " Contact your system administrator. "
echo echo
fatalError=true fatalError=true