diff --git a/compile/src/common.sh b/compile/src/common.sh index c638af46..957bbcf9 100644 --- a/compile/src/common.sh +++ b/compile/src/common.sh @@ -41,16 +41,17 @@ function log { # export CXX=clang++ # 通过$1, 调用各xx/build.sh内对应的: imlib2, xlunch等方法块; function oneBuild(){ - LOGS=$TARGETPATH/../.logs; + LOGS=$TARGETPATH/../.logs; mkdir -p $LOGS # $1 |tee $LOGS/$1.log # env |sort #view set +e echo -e "\n$1, start building.." - begin_time="`gawk 'BEGIN{print systime()}'`"; export logfile=$LOGS/xlunch-$1.log + begin_time="`gawk 'BEGIN{print systime()}'`"; export logfile=$LOGS/oneBuild-$1.log test "yes" == "$CONSOLE_LOG" && echo yes || echo no test "yes" == "$CONSOLE_LOG" && $1 |tee $logfile || $1 > $logfile 2>&1; # $1 > $logfile 2>&1; + echo -e "\nTARGETPATH=$TARGETPATH"; find $TARGETPATH -type f |sort test "0" != "$?" && tail -200 $logfile || echo "err 0, pass" print_time_cost "$1" $begin_time; #echo "$1, finished." }