aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-09-16 06:02:20 +0800
committerkris <kris@FreeBSD.org>2002-09-16 06:02:20 +0800
commit8be2d3cf61c708253ca7850a9dddc0a3cd97305d (patch)
tree7c8d5798f2c0409380be2085fd1940aa197bd86d /Tools
parent10b53f6848cf527c60f0998f861ebe3aef373fdf (diff)
downloadfreebsd-ports-graphics-8be2d3cf61c708253ca7850a9dddc0a3cd97305d.tar.gz
freebsd-ports-graphics-8be2d3cf61c708253ca7850a9dddc0a3cd97305d.tar.zst
freebsd-ports-graphics-8be2d3cf61c708253ca7850a9dddc0a3cd97305d.zip
Optimize the html output by putting multiple missing files in the same
table row, instead of making a new row for every single file. This cuts down the generated page size drastically, improving rendering times. Submitted by: Edwin Groothuis <edwin@mavetju.org> PR: ports/40962
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/processlogs216
1 files changed, 9 insertions, 7 deletions
diff --git a/Tools/portbuild/scripts/processlogs2 b/Tools/portbuild/scripts/processlogs2
index b1f4fdfe66f..0edef4c5551 100755
--- a/Tools/portbuild/scripts/processlogs2
+++ b/Tools/portbuild/scripts/processlogs2
@@ -30,27 +30,29 @@ else
echo "<tr><th>Log</th><th>Aff.</th><th>Size</th><th>Repository</th><th>Maintainer</th><th>Pathname</th></tr>" >>$of
while [ $# -gt 0 ]; do
log=$(echo $1 | basename $1 .log)
- for file in $(cat $log.log | sed -e '1,/^list of extra files and directories/d' -e '/^list of all files and directories/,$d' -e '/^ /d' -e 's/^extra: //' -e 's/^missing: //' -e 's/://' | awk '{print $1}'); do
- echo -n "<tr><td>" >>$of
+ echo -n "<tr><td valign=\"top\">" >>$of
echo -n "<a name=\"$log.log\"></a>" >> $of
echo -n "<a href=\"$log.log\">" >>$of
echo -n $log >>$of
echo -n "</a>" >>$of
- echo -n "</td><td align=right>" >>$of
+ echo -n "</td><td align=right valign=\"top\">" >>$of
affected=$(($(grep -cF $log < INDEX) - 1))
if [ $affected != 0 ]; then echo -n $affected >>$of; fi
- echo -n "</td><td align=right>" >>$of
+ echo -n "</td><td align=right valign=\"top\">" >>$of
size=$(/bin/ls -sk $log.log | awk '{print $1}')
echo -n "$size KB" >>$of
- echo -n "</td><td>" >>$of
+ echo -n "</td><td valign=\"top\">" >>$of
dir=$(sed -n -e '3p' $log.log | awk '{print $4}' | sed -e 's,^/[^/]*/[^/]*/,,')
echo -n "<a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$dir\">$dir</a>" >>$of
- echo -n "</td><td>" >>$of
+ echo -n "</td><td valign=\"top\">" >>$of
maint=$(sed -n -e '4p' $log.log | awk '{print $3}')
maints="$maints $maint"
echo -n "<a href=\"mailto:$maint\">$maint</a>" >>$of
- echo "</td><td>$file</td></tr>" >>$of
+ echo "</td><td valign=\"top\">" >>$of
+ for file in $(cat $log.log | sed -e '1,/^list of extra files and directories/d' -e '/^list of all files and directories/,$d' -e '/^ /d' -e 's/^extra: //' -e 's/^missing: //' -e 's/://' | awk '{print $1}'); do
+ echo "$file<br>" >>$of
done
+ echo "</td></tr>" >>$of
shift
done
echo "</table><br>" >> $of