#############
# VARIABLES #
#############
-CWD=`dirname $0`
+SCR_DIR=`dirname $0`
tmpdir=$(mktemp -d)
SCR_BN=`basename $0`
-OPER_SCR=`readlink -f $CWD/../../operation.sh`
-RESULT_LOG=$CWD/result.log
-RECV_LOG=`readlink -f $CWD/../../launcher.log.recvfe`
+OPER_SCR=../../operation.sh
+RESULT_LOG=result.log
+RECV_LOG=../../launcher.log.recvfe
#############
# FUNCTIONS #
trap sigint_handler SIGINT
# Working directory is script dirname:
-cd $CWD
+cd $SCR_DIR
# Intro:
echo
# Gather .tc files to be processed:
[ ! -f $1 ] && echo -e "\nGathering list of test cases from '`readlink -f $1`' ..."
echo
-find $1 -name *.tc | xargs readlink -f | tee -a $tmpdir/tc_list
+find $1 -name *.tc | xargs -L1 readlink -f | tee -a $tmpdir/tc_list
echo
echo