find-build-errors revision 493
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# Use is subject to license terms.
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# Permission is hereby granted, free of charge, to any person obtaining a
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# copy of this software and associated documentation files (the
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# "Software"), to deal in the Software without restriction, including
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# without limitation the rights to use, copy, modify, merge, publish,
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# distribute, and/or sell copies of the Software, and to permit persons
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# to whom the Software is furnished to do so, provided that the above
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# copyright notice(s) and this permission notice appear in all copies of
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# the Software and that both the above copyright notice(s) and this
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# permission notice appear in supporting documentation.
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
e6e10b96f9d2ac9935eaffd1f7a11a45d3f9a5e6David Lawrence# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
e6e10b96f9d2ac9935eaffd1f7a11a45d3f9a5e6David Lawrence# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
37d266d288410d1ead241c02a8a1dbcb0160be46Michael Graff# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# Except as contained in this notice, the name of a copyright holder
37d266d288410d1ead241c02a8a1dbcb0160be46Michael Graff# shall not be used in advertising or otherwise to promote the sale, use
37d266d288410d1ead241c02a8a1dbcb0160be46Michael Graff# or other dealings in this Software without prior written authorization
3b248999e6246309a6685b18903e78f97136ddbaMichael Graff# of the copyright holder.
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# ident "@(#)find-build-errors 1.1 08/08/07 SMI"
my $logfile;
my $pkglog;
my $pkgfailed;
my @steplines;
my $found_error = 0;
$found_error = 0;
$steplines[$#steplines] .= $l;
$found_error = 1;
my $lastmake;
my $lastcommand = 1;
my $lastplus = 0;
my $sl = $steplines[$ln];
$lastcommand = $ln;
$lastcommand = $ln;
$lastcommand = $ln;
print $steplines[$lastmake];
print $steplines[$ln];
my $printme = 0;
$pkglog = $1;
$pkgfailed = $1;
$printme = 1;
$printme = 0;
return $pl;
my $path_to_check = $logfile;
my @pkglines;