blob: 82913e11ae0ae6d1d59779173de97322119c7be8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#/bin/bash
#------------------------------------------------------------------------------
# Broadcom Canada Ltd., Copyright 2001-2003
#
# Filename: cxwarnerrorgrep.sh
# Purpose: Grep for errors and warnings in the build logs
# Arguments: $1 - CxC build target log file to parse
# $2 - File resulted from a build process (library, dependancy file,
# target image, ...). Indicates success or failure of the build
#------------------------------------------------------------------------------
export CXNB_LOG_PATH=$(cygpath -u "${CXNB_LOCAL_LOG_PATH}")
echo "Started error warning grep for $1 $2 at: " `date +"%T"` >>${CXNB_LOG_PATH}/${CXNB_LABEL}/build.log
if [ -e "$1.txt" ]
then
export CXNB_LDX_TOOLS_PATH_U=$(cygpath -u "${CXNB_LDX_TOOLS_PATH}")
mkdir -p buildlogs
echo "***************************************************************" >buildlogs/warn_err_$1.txt
echo "CablexChange Warnings and Errors for $1 " >>buildlogs/warn_err_$1.txt
echo "***************************************************************" >>buildlogs/warn_err_$1.txt
echo >>buildlogs/warn_err_$1.txt
gawk -f ${CXNB_LDX_TOOLS_PATH_U}/log.awk $1.txt >>buildlogs/warn_err_$1.txt
if [ -e "$2" ]
then
echo "$1 cxc build successfull." >>buildlogs/build_summary.txt
else
echo "$1 cxc build FAILED !!!!!" >>buildlogs/build_summary.txt
fi
else
echo "cxwarnerrorgrep error: $1.txt does not exits" >>${CXNB_LOG_PATH}/${CXNB_LABEL}/build.log
fi
echo "Completed error warning grep for $1 $2 at: " `date +"%T"` >>${CXNB_LOG_PATH}/${CXNB_LABEL}/build.log
exit
|