diff options
author | kris <kris@FreeBSD.org> | 2004-11-25 08:04:48 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-11-25 08:04:48 +0800 |
commit | 631fed024499690a49a3fb361ee86701c1bf41de (patch) | |
tree | 722e6acdbc64f243a7c43c05ecc4e0c8ccfd21d1 /Tools/portbuild | |
parent | b3ebb89501fa33c93b9220b9055b7c215ebfa3ca (diff) | |
download | freebsd-ports-graphics-631fed024499690a49a3fb361ee86701c1bf41de.tar.gz freebsd-ports-graphics-631fed024499690a49a3fb361ee86701c1bf41de.tar.zst freebsd-ports-graphics-631fed024499690a49a3fb361ee86701c1bf41de.zip |
Catch up to the changed format of the logs.
List the extra/removed/changed files separately, and colour-code the
serious errors (files left behind outside of /usr/local and /usr/X11R^;
files removed that were installed by another port, and files with changed
permissions or ownership)
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/processlogs2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/portbuild/scripts/processlogs2 b/Tools/portbuild/scripts/processlogs2 index b069410ed38..58626ffc4b2 100755 --- a/Tools/portbuild/scripts/processlogs2 +++ b/Tools/portbuild/scripts/processlogs2 @@ -42,16 +42,16 @@ else size=$(/bin/ls -sk $log.log | awk '{print $1}') echo -n "$size KB" >>$of echo -n "</td><td valign=\"top\">" >>$of - dir=$(sed -n -e '3p' $log.log | awk '{print $4}' | sed -e 's,^/[^/]*/[^/]*/,,') + dir=$(sed -n -e '4p' $log.log | awk '{print $3}' | sed -e 's,^/[^/]*/[^/]*/,,') echo -n "<a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$dir\">$dir</a>" >>$of echo -n "</td><td valign=\"top\">" >>$of maint=$(sed -n -e '3p' $log.log | awk '{print $3}') maints="$maints $maint" echo -n "<a href=\"mailto:$maint\">$maint</a>" >>$of echo "</td><td valign=\"top\">" >>$of - for file in $(cat $log.log | sed -e '1,/^list of extra files and directories/d' -e '/^=======/,$d' -e '/^ /d' -e 's/^extra: //' -e 's/^missing: //' -e 's/://' | awk '{print $1}'); do - echo "$file<br>" >>$of - done + cat $log.log | sed -e '1,/^list of extra files and directories/d' -e '/^list of/,$d' | awk '{print $11}' | sed -E -e 's,^,<font color=\"magenta\">,' -e 's,(usr/(local|X11R6)),<font color=\"black\">\1,g' -e 's,$,</font></font><br>,' >>$of + cat $log.log | sed -e '1,/^list of files present before this port was installed/d' -e '/^list of/,$d' -e 's,^\./,,' | awk '{print $1}' | sed -e 's,^,<font color=\"orange\">,' -e 's,$, (missing)</font><br>,' >> $of + cat $log.log | sed -e '1,/^list of filesystem changes/d' -e '/^ /d' | awk '{print $1}' | sed -e 's,^,<font color=\"red\">,' -e 's,$, (changed)</font><br>,' >>$of echo "</td></tr>" >>$of shift done |