diff options
author | linimon <linimon@FreeBSD.org> | 2008-05-29 09:45:39 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2008-05-29 09:45:39 +0800 |
commit | 9948599e9d8dee87ed95455bd46aced155e8441a (patch) | |
tree | 54f0370cd3ea025c55027e88c9a4b010dba3965f /Tools | |
parent | 769ae6a3a9db13ccc647a8b52801b1a2ad2c1be1 (diff) | |
download | freebsd-ports-gnome-9948599e9d8dee87ed95455bd46aced155e8441a.tar.gz freebsd-ports-gnome-9948599e9d8dee87ed95455bd46aced155e8441a.tar.zst freebsd-ports-gnome-9948599e9d8dee87ed95455bd46aced155e8441a.zip |
Fix these after the 1.31 update to buildscript.
Forgotten by: pav
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/processlogs2 | 4 | ||||
-rwxr-xr-x | Tools/portbuild/scripts/processonelog | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Tools/portbuild/scripts/processlogs2 b/Tools/portbuild/scripts/processlogs2 index ce9a59c10fb9..7f4545ba8614 100755 --- a/Tools/portbuild/scripts/processlogs2 +++ b/Tools/portbuild/scripts/processlogs2 @@ -36,10 +36,10 @@ 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 '4p' $log.log | awk '{print $3}' | sed -e 's,^/[^/]*/[^/]*/,,') + dir=$(sed -n -e '5p' $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}') + 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 valign=\"top\">" >>$of diff --git a/Tools/portbuild/scripts/processonelog b/Tools/portbuild/scripts/processonelog index 7b3718613bb7..0271779f30e0 100755 --- a/Tools/portbuild/scripts/processonelog +++ b/Tools/portbuild/scripts/processonelog @@ -16,6 +16,8 @@ indexdir=$(realpath $indexdir) errordir=$(realpath $errordir) indexfilename=$indexdir/INDEX +HEADER_LINES=7 + portname=$(basename $filename .log.bz2) if [ "${portname}" = "${filename}" ]; then cat=cat @@ -26,10 +28,10 @@ portname=$(basename $portname .log) affected=$(($(grep -cF $portname < $indexfilename) -1)) logsize=$(/bin/ls -sk $errordir/$filename | awk '{print $1}') -dir=$(${cat} $errordir/$filename | head -6 | grep '^port directory:' | awk '{print $3}' | \ +dir=$(${cat} $errordir/$filename | head -$HEADER_LINES | grep '^port directory:' | awk '{print $3}' | \ sed -e 's,^/[^/]*/[^/]*/,,') -maintainer=$(${cat} $errordir/$filename | head -6 | grep '^maintained by' | awk '{print $3}') -datetime=$(${cat} $errordir/$filename | head -6 | grep '^build started at' | \ +maintainer=$(${cat} $errordir/$filename | head -$HEADER_LINES | grep '^maintained by' | awk '{print $3}') +datetime=$(${cat} $errordir/$filename | head -$HEADER_LINES | grep '^build started at' | \ sed -e 's/build started at ...//' | tr ' ' '_' ) # now try to classify the type of error found in the file. |