Skip to content

Commit

Permalink
cpl: common.sh fix mkdir -p $LOGS
Browse files Browse the repository at this point in the history
cpl: common echo "TARGETPATH=$TARGETPATH"; find $TARGETPATH -type f |sort

echo -e "\nTARGETPATH=
  • Loading branch information
huapox committed Sep 25, 2024
1 parent 3f9deaf commit c874b85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compile/src/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
Expand Down

0 comments on commit c874b85

Please sign in to comment.