diff options
author | kris <kris@FreeBSD.org> | 2006-09-14 13:26:08 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2006-09-14 13:26:08 +0800 |
commit | 166e6ccf259032e4168f7c795d10b63f5ab9abf9 (patch) | |
tree | 986579a3e651196fc85c1f6524544c80cc806736 | |
parent | 7d0ad9848ab39dd18acb742dbc97d166edac53b5 (diff) | |
download | freebsd-ports-gnome-166e6ccf259032e4168f7c795d10b63f5ab9abf9.tar.gz freebsd-ports-gnome-166e6ccf259032e4168f7c795d10b63f5ab9abf9.tar.zst freebsd-ports-gnome-166e6ccf259032e4168f7c795d10b63f5ab9abf9.zip |
* If .force exists, rebuild index unconditionally
* Support .log.bz2 files
* Clarify that BROKEN ports are not frequently rebuilt so probably
won't appear
-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 |