Commit 14022e66 authored by ulrich_y's avatar ulrich_y

Ensured LOGFILE is honoured

parent 82bdfe0d
#! /bin/bash #! /bin/bash
# configure script # configure script
# note: has nothing to do with GNU autoconf # note: has nothing to do with GNU autoconf
if [[ -z $LOGFILE ]]; then
exec 2> ${LOGFILE:-/dev/null} 3>&1 exec 2> /dev/null 3>&1
eval ${LOGFILE:+set -x} else
exec 3> >(while read TEXT ; do echo $TEXT ; echo $(date +"%d.%m.%Y %H:%M:%S") $TEXT >> $LOGFILE; done)
exec 2>> $LOGFILE
fi
shopt -s nullglob shopt -s nullglob
...@@ -125,7 +128,7 @@ for arg in "$@" ; do ...@@ -125,7 +128,7 @@ for arg in "$@" ; do
--coverage) --coverage)
COVERAGE=true ;; COVERAGE=true ;;
--ci) --ci)
echo "Running in CI configuration. Will not perform speed tests!" echo "Running in CI configuration. Will not perform speed tests!" 1>&3
HAVE_MCC=true HAVE_MCC=true
HAVE_GINAC=true HAVE_GINAC=true
DEBUG=true DEBUG=true
...@@ -259,7 +262,7 @@ case "$1,$2,$3" in ...@@ -259,7 +262,7 @@ case "$1,$2,$3" in
$NATIVE && eval addflag FFLAGS -march=native -mtune=native $NATIVE && eval addflag FFLAGS -march=native -mtune=native
fi fi
if $COVERAGE ; then if $COVERAGE ; then
echo "Coverage analytics is currently only supported for gcc" echo "Coverage analytics is currently only supported for gcc" 1>&3
exit 1 exit 1
fi fi
;; ;;
...@@ -303,7 +306,7 @@ case "$1,$2,$3" in ...@@ -303,7 +306,7 @@ case "$1,$2,$3" in
HAVE_MCC=false HAVE_MCC=false
fi fi
if $COVERAGE ; then if $COVERAGE ; then
echo "Coverage analytics is currently only supported for gcc" echo "Coverage analytics is currently only supported for gcc" 1>&3
exit 1 exit 1
fi fi
;; ;;
...@@ -923,4 +926,4 @@ distclean: ...@@ -923,4 +926,4 @@ distclean:
EOF EOF
echo "Configuration of handyG $VERSION done. Now type \"make\"." echo "Configuration of handyG $VERSION done. Now type \"make\"." 1>&3
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