diff options
author | Andy Fleming <afleming@freescale.com> | 2012-08-08 14:12:30 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-08-09 21:22:05 +0200 |
commit | 033220e7a43ff626a5e65b194ac50358b0dba22e (patch) | |
tree | 8ea291b0a236de7ef175ffebe5e596e60a61fe47 | |
parent | 1d56f63dab2d9b1ea60601f5f3ae22d8664d8aa5 (diff) | |
download | u-boot-imx-033220e7a43ff626a5e65b194ac50358b0dba22e.zip u-boot-imx-033220e7a43ff626a5e65b194ac50358b0dba22e.tar.gz u-boot-imx-033220e7a43ff626a5e65b194ac50358b0dba22e.tar.bz2 |
MAKEALL: Allow empty ERR directory
If we build everything correctly with multiple builds, and an
ERR directory had been previously created, we failed to report
that everything was fine because grep failed to find anything
in the ERR directory. Use grep -r, which doesn't complain if
there are no input files.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Tested-by: Tom Rini <trini@ti.com>
-rwxr-xr-x | MAKEALL | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -754,10 +754,10 @@ print_stats() { rm -f ${donep}* ${skipp}* if [ $BUILD_MANY == 1 ] && [ -e "${OUTPUT_PREFIX}/ERR" ] ; then - ERR_LIST=`grep -iwl error ${OUTPUT_PREFIX}/ERR/*` + ERR_LIST=`grep -riwl error ${OUTPUT_PREFIX}/ERR/` ERR_LIST=`for f in $ERR_LIST ; do echo -n " $(basename $f)" ; done` ERR_CNT=`echo $ERR_LIST | wc -w | awk '{print $1}'` - WRN_LIST=`grep -iwL error ${OUTPUT_PREFIX}/ERR/*` + WRN_LIST=`grep -riwL error ${OUTPUT_PREFIX}/ERR/` WRN_LIST=`for f in $WRN_LIST ; do echo -n " $(basename $f)" ; done` WRN_CNT=`echo $WRN_LIST | wc -w | awk '{print $1}'` fi |