Commit 51fc6716 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Handle the --compat option. Handle compilers that flag warnings with

the string "(W)".
parent 6b80eab2
......@@ -39,10 +39,21 @@
# distribution.
compiler=default
if [ $# -gt 1 ]
then
compiler="$1"
shift
compat=false
while [ $# -gt 1 ]
do
case "$1" in
--compat) compat=true; shift;;
*) compiler="$1"; shift;;
esac
done
if $compat
then :
else
rm -rf r
mkdir r
exec > r/shlog.txt 2>&1
fi
VERS=`echo lyskom-server*tar.gz|sed s/lyskom-server-//|sed s/.tar.gz//`
......@@ -244,7 +255,7 @@ timeecho Collecting results
# Check for warnings
if test -f r/make.pass
then
grep -i warning r/makelog.txt \
grep -i 'warning\|(w)' r/makelog.txt \
| grep -v regex\\.c \
> r/makewarn.txt
if test `wc -l < r/makewarn.txt` -gt 0
......@@ -282,4 +293,11 @@ cp buildid.txt r/buildid.txt
cp export.stamp r/export.stamp
cp exportstamp.txt r/exportstamp.txt
if $compat
then :
else
(cd r && tar cf - *) > xenofarm_result.tar
gzip -1 xenofarm_result.tar
fi
exit 0
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