Commit e623f1ed authored by Niels Möller's avatar Niels Möller

(cfgwarn, makewarn, ckprgwarn): Renamed

variables log, warn and fail.

Rev: ChangeLog:1.763
Rev: misc/xenofarm.sh:1.24
parent 492003ec
2004-02-25 Niels Mller <nisse@lysator.liu.se>
* misc/xenofarm.sh (cfgwarn, makewarn, ckprgwarn): Renamed
variables log, warn and fail.
2004-02-24 Niels Mller <nisse@lysator.liu.se>
* misc/xenofarm.sh (dotask): Fixed handling of $var.
......
......@@ -123,58 +123,58 @@ dotask() {
}
cfgwarn () {
log="r/${task}log.txt"
warn="r/${task}warn.txt"
egrep -i 'warning|\(w\)' "$log" \
logfile="r/${task}log.txt"
warnfile="r/${task}warn.txt"
egrep -i 'warning|\(w\)' "$logfile" \
| sed -e '/configure: WARNING: Converted \. to /d' \
> "$warn"
warnings=`wc -l < $warn`
> "$warnfile"
warnings=`wc -l < $warnfile`
if test $warnings -gt 0
then
logwarn $warnings
else
rm "$warn"
rm "$warnfile"
logpass
fi
}
makewarn () {
log="r/${task}log.txt"
warn="r/${task}warn.txt"
logfile="r/${task}log.txt"
warnfile="r/${task}warn.txt"
# Use sed -e /RX/d to get rid of selected warnings.
egrep -i 'warning|\(w\)' "$log" \
> "$warn"
warnings=`wc -l < $warn`
egrep -i 'warning|\(w\)' "$logfile" \
> "$warnfile"
warnings=`wc -l < $warnfile`
if test $warnings -gt 0
then
logwarn $warnings
else
rm "$warn"
rm "$warnfile"
logpass
fi
}
ckprgwarn () {
log="r/${task}log.txt"
warn="r/${task}warn.txt"
fail="r/${task}fail.txt"
logfile="r/${task}log.txt"
warnfile="r/${task}warn.txt"
failfile="r/${task}fail.txt"
egrep -i 'warning|\(w\)|error' "$log" \
> "$warn"
warnings=`wc -l < $warn`
egrep -i 'warning|\(w\)|error' "$logfile" \
> "$warnfile"
warnings=`wc -l < $warnfile`
if test $warnings -gt 0
then
egrep -i 'error' "$warn" \
> "$fail"
if test `wc -l < $fail` -gt 0
egrep -i 'error' "$warnfile" \
> "$failfile"
if test `wc -l < $failfile` -gt 0
then
logfail
else
rm "$fail"
rm "$failfile"
logwarn $warnings
fi
else
rm "$warn"
rm "$warnfile"
logpass
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment