aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-11-10 08:55:33 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-11-10 08:55:33 +0000
commit115bbb55f97842b2116e90f526856eb46d8d9e96 (patch)
tree98bbf246dc641730dab00a2ce120c78091f0c0a0 /Tools
parentba46fbdb7b536d27c933b65f5e8617b68ee986a0 (diff)
downloadports-115bbb55f97842b2116e90f526856eb46d8d9e96.tar.gz
ports-115bbb55f97842b2116e90f526856eb46d8d9e96.zip
Fix the html output of this script. There was neither a closing
body tag nor a closing html tag. In general, browsers work without these, but Konqueror in particular was displaying some artifacts. Also make sure empty cells have an nbsp directive; eliminate a bogus case for Aff.; and change Date build to Build date. Submitted by: Mark Linimon <linimon@lonesome.com> PR: www/45021
Notes
Notes: svn path=/head/; revision=69806
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/processlogs36
1 files changed, 21 insertions, 15 deletions
diff --git a/Tools/portbuild/scripts/processlogs b/Tools/portbuild/scripts/processlogs
index 6f77ee2207da..47655a420fe0 100755
--- a/Tools/portbuild/scripts/processlogs
+++ b/Tools/portbuild/scripts/processlogs
@@ -173,10 +173,16 @@ header() {
fi
}
+footer() {
+ echo "</table>" >>$of
+ echo "</body>" >>$of
+ echo "</html>" >>$of
+}
+
#
# Create "default" output, sorted on portname
#
-header "<th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th><th>Date build</th>"
+header "<th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th><th>Build date</th>"
for i in `cat .logs | sort`; do
set $(echo $i | tr \| " ")
@@ -184,7 +190,7 @@ for i in `cat .logs | sort`; do
echo "<td><a href=\"$1\">$2</a></td>" >> $of
affby=$3
- test $affby = "0" && affby=""
+ test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
@@ -200,13 +206,13 @@ for i in `cat .logs | sort`; do
echo "</tr>" >> $of
done
-echo "</table>" >> $of
+footer ""
mv -f $of index.html
#
# Create output by category
#
-header "<th>CVS</th><th>Aff.</th><th>Size</th><th>Port</th><th>Maintainer</th><th>Reason</th><th>Date build</th>"
+header "<th>CVS</th><th>Aff.</th><th>Size</th><th>Port</th><th>Maintainer</th><th>Reason</th><th>Build date</th>"
for i in `cat .logs | sort -t \\| +4`; do
set $(echo $i | tr \| " ")
@@ -214,7 +220,7 @@ for i in `cat .logs | sort -t \\| +4`; do
echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
affby=$3
- test $affby = "0" && affby=""
+ test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
echo "<td><a href=\"$1\">$2</a></td>" >> $of
echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
@@ -230,13 +236,13 @@ for i in `cat .logs | sort -t \\| +4`; do
echo "</tr>" >> $of
done
-echo "</table>" >> $of
+footer ""
mv -f $of index-category.html
#
# Create output by maintainer
#
-header "<th>Maintainer</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Reason</th><th>Date build</th>"
+header "<th>Maintainer</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Reason</th><th>Build date</th>"
for i in `cat .logs | sort -t \\| +5`; do
set $(echo $i | tr \| " ")
@@ -245,7 +251,7 @@ for i in `cat .logs | sort -t \\| +5`; do
echo "<td><a href=\"$1\">$2</a></td>" >> $of
affby=$3
- test $affby = "0" && affby=""
+ test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
@@ -260,13 +266,13 @@ for i in `cat .logs | sort -t \\| +5`; do
echo "</tr>" >> $of
done
-echo "</table>" >> $of
+footer ""
mv -f $of index-maintainer.html
#
# Create output by error
#
-header "<th>Reason</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Date build</th>"
+header "<th>Reason</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Build date</th>"
for i in `cat .logs | sort -t \\| +7`; do
set $(echo $i | tr \| " ")
@@ -281,7 +287,7 @@ for i in `cat .logs | sort -t \\| +7`; do
echo "<td><a href=\"$1\">$2</a></td>" >> $of
affby=$3
- test $affby = "0" && affby=""
+ test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
@@ -291,13 +297,13 @@ for i in `cat .logs | sort -t \\| +7`; do
echo "</tr>" >> $of
done
-echo "</table>" >> $of
+footer ""
mv -f $of index-reason.html
#
# Create output by builddate
#
-header "<th>Date build</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th>"
+header "<th>Build date</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th>"
for i in `cat .logs | sort -t \\| +9`; do
set $(echo $i | tr \| " ")
@@ -309,7 +315,7 @@ for i in `cat .logs | sort -t \\| +9`; do
echo "<td><a href=\"$1\">$2</a></td>" >> $of
affby=$3
- test $affby = "0" && affby=""
+ test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
@@ -322,7 +328,7 @@ for i in `cat .logs | sort -t \\| +9`; do
echo "</tr>" >> $of
done
-echo "</table>" >> $of
+footer ""
mv -f $of index-builddate.html
#