Github user robertamarton commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/306#discussion_r51919029
--- Diff: install/traf_tools_setup.sh ---
@@ -93,13 +93,38 @@ function downloadSource
fi
}
+LOGDIR=$(pwd)
+LOGFILE=$LOGDIR/traf_tools_setup.log
+BLDLOG=$LOGDIR/traf_tools_bld
+
+#
-----------------------------------------------------------------------------
+# execute build functions in background
+# $1 - short name of component (single word, also used in logfile name)
+# $2 - first make target (usually empty string for the default target)
+# $3 - second make target
+# $4 - dir/file to check for success
+#
-----------------------------------------------------------------------------
+function bkgBuild
+{
+ LOG=${BLDLOG}-${1}.log
+ echo "INFO: Starting background make and install for $1" | tee -a
$LOGFILE
+
+ (make $2 > $LOG 2>&1
+ echo "INFO: make completed" > $LOG
+ make $3 > $LOG 2>&1
+ if [[ ! -e $4 ]]; then
+ echo "ERROR: failed to install $1" | tee -a $LOGFILE
+ echo " see details in $LOG" | tee -a $LOGFILE
+ exit 2;
+ fi
+ echo "INFO: $1 install complete at $(date), files placed in $TOOLSDIR"
| tee -a $LOGFILE
+ ) &
+}
# main code
TOOLSDIR=
BASEDIR=
-LOGDIR=`pwd`
-LOGFILE=$LOGDIR/traf_tools_setup.log
rm $LOGFILE 2>/dev/null
--- End diff --
where does the LOGFILE variable get set?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---