aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-07-14 17:18:48 +0800
committerkris <kris@FreeBSD.org>2004-07-14 17:18:48 +0800
commitb7b0f6e333ed7bc93ce36f6135ec5f6ff9feb3b6 (patch)
treee703d5d727b24bb4684fe536ab2631f7105fea05 /Tools
parent80a962b017d618af93ab881232bfa6b39d538f46 (diff)
downloadfreebsd-ports-gnome-b7b0f6e333ed7bc93ce36f6135ec5f6ff9feb3b6.tar.gz
freebsd-ports-gnome-b7b0f6e333ed7bc93ce36f6135ec5f6ff9feb3b6.tar.zst
freebsd-ports-gnome-b7b0f6e333ed7bc93ce36f6135ec5f6ff9feb3b6.zip
Parse the slightly-different format of the build logs.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/processonelog6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/processonelog b/Tools/portbuild/scripts/processonelog
index 1bc27f57ecf8..6d6836e9b733 100755
--- a/Tools/portbuild/scripts/processonelog
+++ b/Tools/portbuild/scripts/processonelog
@@ -19,9 +19,9 @@ indexfilename=$indexdir/INDEX
portname=$(basename $filename .log)
affected=$(($(grep -cF $portname < $indexfilename) -1))
logsize=$(/bin/ls -sk $errordir/$filename | awk '{print $1}')
-dir=$(sed -n -e '3p' $errordir/$filename | grep '^with arguments' | awk '{print $4}' | \
+dir=$(sed -n -e '4p' $errordir/$filename | grep '^port directory:' | awk '{print $3}' | \
sed -e 's,^/[^/]*/[^/]*/,,')
-maintainer=$(sed -n -e '4p' $errordir/$filename | grep '^maintained by' | awk '{print $3}')
+maintainer=$(sed -n -e '3p' $errordir/$filename | grep '^maintained by' | awk '{print $3}')
datetime=$(sed -n -e '5p' $errordir/$filename | grep '^build started at' | \
sed -e 's/build started at ...//' | tr ' ' '_' )
@@ -337,4 +337,4 @@ if grep -q "Trying build of .* even though it is marked BROKEN" $1; then
broken="broken"
fi
-echo "$filename|$portname|$affected|$logsize|$dir|$maintainer|$reason|$tag|$broken|$datetime"
+echo "$filename|$portname|$affected|$logsize|$dir|$maintainer|$reason|$tag|$broken|$datetime|$errordir"