aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2009-03-26 18:38:44 +0800
committerlinimon <linimon@FreeBSD.org>2009-03-26 18:38:44 +0800
commit0cd385a62a8ed1de452dc10c21e63307fa2714a3 (patch)
tree7780a8359a4a4ff3f621f6a73f555e488d17133f /Tools
parente4a7bacaa858c0b7b82aa3cd609673a6ee746a84 (diff)
downloadfreebsd-ports-gnome-0cd385a62a8ed1de452dc10c21e63307fa2714a3.tar.gz
freebsd-ports-gnome-0cd385a62a8ed1de452dc10c21e63307fa2714a3.tar.zst
freebsd-ports-gnome-0cd385a62a8ed1de452dc10c21e63307fa2714a3.zip
Fix bug where number of error logs was incorrect.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/processlogs17
1 files changed, 9 insertions, 8 deletions
diff --git a/Tools/portbuild/scripts/processlogs b/Tools/portbuild/scripts/processlogs
index 53dbdcefe712..90d14ef63d41 100755
--- a/Tools/portbuild/scripts/processlogs
+++ b/Tools/portbuild/scripts/processlogs
@@ -105,6 +105,7 @@ while [ $# -ge 1 ]; do
done
touch .stamp
+n_logs=$(cat .logs/.all | wc -l)
echo "processlogs: at "`date`", end processing log files for ${arch} in ${baselogdir}"
@@ -124,7 +125,7 @@ header() {
echo "| <a href=\"index-builddate.html\">builddate</a> " >>$of
echo "]</p>" >>$of
- if [ ${#alllogs} = "0" ]; then
+ if [ ${n_logs} = "0" ]; then
echo "No errors (yet)" >>$of
else
if [ -s cvsdone ]; then
@@ -134,7 +135,7 @@ header() {
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 (Note: BROKEN ports are not frequently rebuilt so they may not be listed here)<br><br>" >> $of
- echo "<p>${#alllogs} errors</p>" >> $of
+ echo "<p>${n_logs} errors</p>" >> $of
echo "<table border=1>" >>$of
echo "<tr>$1</tr>" >>$of
fi
@@ -154,7 +155,7 @@ footer() {
#
header "<th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th><th>Build date</th>"
-if [ ${#alllogs} -gt 0 ]; then
+if [ ${n_logs} -gt 0 ]; then
sort .logs/.all | while read line; do
IFS="|"
set -- ${line}
@@ -195,7 +196,7 @@ mv -f $of index.html
#
header "<th>CVS</th><th>Aff.</th><th>Size</th><th>Port</th><th>Maintainer</th><th>Reason</th><th>Build date</th>"
-if [ ${#alllogs} -gt 0 ]; then
+if [ ${n_logs} -gt 0 ]; then
sort -t \| +4 .logs/.all | while read line; do
IFS="|"
set -- $line
@@ -236,7 +237,7 @@ mv -f $of index-category.html
#
header "<th>Maintainer</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Reason</th><th>Build date</th>"
-if [ ${#alllogs} -gt 0 ]; then
+if [ ${n_logs} -gt 0 ]; then
sort -t \| +5 .logs/.all | while read line; do
IFS="|"
set -- $line
@@ -277,7 +278,7 @@ mv -f $of index-maintainer.html
#
header "<th>Reason</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Build date</th>"
-if [ ${#alllogs} -gt 0 ]; then
+if [ ${n_logs} -gt 0 ]; then
sort -t \| +7 .logs/.all | while read line; do
IFS="|"
set -- ${line}
@@ -318,7 +319,7 @@ mv -f $of index-reason.html
#
header "<th>Build date</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th>"
-if [ ${#alllogs} -gt 0 ]; then
+if [ ${n_logs} -gt 0 ]; then
sort -t \| +9 .logs/.all | while read line; do
IFS="|"
set -- ${line}
@@ -357,7 +358,7 @@ mv -f $of index-builddate.html
# echo 'processlogs: at '`date`', create maintainer list'
#
# Get list of maintainers.
-if [ ${#alllogs} -gt 0 ]; then
+if [ ${n_logs} -gt 0 ]; then
cut -f 6 -d \| .logs/.all | sort -fu > maintainers
else
cat /dev/null > maintainers