2009-04-10 13:33:31 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
srcdir=${srcdir-.}
|
|
|
|
builddir=${builddir-.}
|
|
|
|
|
|
|
|
name=filecomp
|
|
|
|
prog="$builddir/$name$EXEEXT"
|
|
|
|
log="$builddir/$name.log"
|
|
|
|
|
|
|
|
compile()
|
|
|
|
{
|
|
|
|
echo "$prog '$1' ${2+'$2'}" >>"$log"
|
|
|
|
$prog "$1" ${2+"$2"} >>"$log" 2>&1 || exit $?
|
|
|
|
}
|
|
|
|
|
|
|
|
failcompile()
|
|
|
|
{
|
|
|
|
echo "$prog '$1' ${2+'$2'}" >>"$log"
|
|
|
|
if $prog "$1" ${2+"$2"} >>"$log" 2>&1; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
rm -f "$log"
|
|
|
|
|
2009-04-24 22:29:23 -06:00
|
|
|
compile $srcdir/basic.xkb
|
2012-03-22 11:39:12 -06:00
|
|
|
# XXX check we actually get qwertz here ...
|
2009-04-24 22:29:23 -06:00
|
|
|
compile $srcdir/default.xkb
|
2012-03-15 03:35:42 -06:00
|
|
|
compile $srcdir/comprehensive-plus-geom.xkb
|
2009-04-24 22:29:23 -06:00
|
|
|
failcompile $srcdir/bad.xkb
|