diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2006-09-14 05:26:08 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2006-09-14 05:26:08 +0000 |
commit | db6e3408a5b3f0686facf4b3ce3e8a17f1cc3563 (patch) | |
tree | 8f792944589397fe4450a9a1b2aed3672b4284d0 /Tools | |
parent | d35698c80eccbf071134670f6c6eacc8b7905784 (diff) | |
download | ports-db6e3408a5b3f0686facf4b3ce3e8a17f1cc3563.tar.gz ports-db6e3408a5b3f0686facf4b3ce3e8a17f1cc3563.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/processlogs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Tools/portbuild/scripts/processlogs b/Tools/portbuild/scripts/processlogs index ec819fc14e70..00e157241c44 100755 --- a/Tools/portbuild/scripts/processlogs +++ b/Tools/portbuild/scripts/processlogs @@ -28,12 +28,13 @@ arch=$(echo ${buildlogdir} | sed -e "s,${rpb}/,," | cut -f 1 -d /) of=.index.html # if there are no new logfiles, there is nothing to do here. -if [ -e .stamp -a $(echo $(find -f $buildlogdir -maxdepth 1 -newer .stamp -type f -name '*.log' 2>/dev/null | wc -l)) = "0" ]; then exit; fi +if [ \! -e .force -a -e .stamp -a $(echo $(find -f $buildlogdir -maxdepth 1 -newer .stamp -type f \( -name '*.log' -o -name '*.log.bz2' \) 2>/dev/null | wc -l)) = "0" ]; then exit; fi +rm -f .force touch .stamp # get the list of buildlogs. -set $buildlogdir/*.log +set $buildlogdir/*.log $buildlogdir/*.log.bz2 > .logs # @@ -44,7 +45,7 @@ set $buildlogdir/*.log # echo 'processlogs: at '`date`', begin processing log files' -if [ $# != 1 -o "x$1" != "x`dirname $1`/*.log" ]; then +if [ $# != 1 -o "x$1" != "x`dirname $1`/*.log" -o "x$1" != "x`dirname $1`/*.log.bz2" ]; then while [ ! -z "$1" ]; do filename=$(basename $1) #echo 'processlogs: at '`date`', examining '$filename' @@ -78,10 +79,10 @@ header() { if [ -s cvsdone ]; then echo "CVS update finished at: $(cat cvsdone)<br>" >> $of fi - latest=$(cd $buildlogdir; ls -rtTl *.log | tail -1 | awk '{printf("%s %s %s %s\n",$6,$7,$8,$9)}';) + latest=$(cd $buildlogdir; ls -rtTl *.log *.log.bz2 | tail -1 | awk '{printf("%s %s %s %s\n",$6,$7,$8,$9)}';) echo "Timestamp of newest log: $latest<br><br>" >> $of echo "\"Aff.\" is number of ports that depend on this one<br>" >> $of - echo "\"<font color=\"red\">[B]</font>\" indicates port is marked BROKEN<br><br>" >> $of + echo "\"<font color=\"red\">[B]</font>\" indicates port is marked BROKEN (Note: BROKEN ports are not frequently rebuilt so they may not be listed here)<br><br>" >> $of echo "<p>$num errors</p>" >> $of echo "<table border=1>" >>$of echo "<tr>$1</tr>" >>$of |