diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2009-08-24 01:57:30 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2009-08-24 01:57:30 +0000 |
commit | 3fba981253c4bedc4c50f7da38c27f894c3c22bb (patch) | |
tree | 15ad4b3052d0f76b25c2257a683cc277c8ab80b7 /Tools | |
parent | d0230c34f67a6928f3de79f6ed6313b4d487c6f2 (diff) | |
download | ports-3fba981253c4bedc4c50f7da38c27f894c3c22bb.tar.gz ports-3fba981253c4bedc4c50f7da38c27f894c3c22bb.zip |
Generalize this script to remove the necessity of editing it every time
we create a new src branch. While here, garbage collect some code that
hasn't been run for years.
Notes
Notes:
svn path=/head/; revision=240237
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dologs | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Tools/portbuild/scripts/dologs b/Tools/portbuild/scripts/dologs index 865b6887ffa6..54f1b773c88b 100755 --- a/Tools/portbuild/scripts/dologs +++ b/Tools/portbuild/scripts/dologs @@ -1,27 +1,25 @@ #!/bin/sh +# $FreeBSD$ -pb=/var/portbuild arch=$1 +versions="latest full" + +pb=/var/portbuild . ${pb}/${arch}/portbuild.conf home=${pb}/errorlogs scripts=${pb}/scripts -for ver in latest full; do - for num in 6 6-exp 7 7-exp 8 8-exp; do - dir=$home/$arch-$num-$ver +for version in ${versions}; do + for branch in ${branches}; do + dir=$home/$arch-$branch-$version test -d $dir && cd $dir && ${scripts}/processlogs ${arch} - dir=${pb}/${arch}/${num} - test -d $dir && cd $dir && ${scripts}/processfail ${arch} ${num} + dir=${pb}/${arch}/${branch} + test -d $dir && cd $dir && ${scripts}/processfail ${arch} ${branch} done - for num in 6 6-exp 7 7-exp 8 8-exp; do - dir=$home/$arch-$num-$ver-logs + for branch in ${branches}; do + dir=$home/$arch-$branch-$version-logs test -d $dir && cd $dir && ${scripts}/processlogs2 done -# for num in 6 6-exp 7; do -# cd $home && ${scripts}/comparelogs ${arch} $num-$ver 4-$ver -# cd $home && ${scripts}/comparelogs ${arch} 4-$ver $num-$ver -# done -# cd $home && ${scripts}/bothlogs ${arch} 4-$ver 5-$ver done |