2009-04-04 10:14:20 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
srcdir=${srcdir-.}
|
|
|
|
builddir=${builddir-.}
|
|
|
|
|
2009-04-04 12:04:35 -06:00
|
|
|
name=rulescomp
|
|
|
|
prog="$builddir/$name$EXEEXT"
|
|
|
|
log="$builddir/$name.log"
|
2009-04-04 11:52:23 -06:00
|
|
|
|
2009-04-04 10:14:20 -06:00
|
|
|
compile()
|
|
|
|
{
|
2009-04-04 12:04:35 -06:00
|
|
|
echo "$prog '$1' '$2' '$3' '$4' '$5'" >>"$log"
|
|
|
|
$prog "$1" "$2" "$3" "$4" "$5" >>"$log" 2>&1 || exit $?
|
2009-04-04 11:52:23 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
failcompile()
|
|
|
|
{
|
2009-04-04 12:04:35 -06:00
|
|
|
echo "$prog '$1' '$2' '$3' '$4' '$5'" >>"$log"
|
|
|
|
if $prog "$1" "$2" "$3" "$4" "$5" >>"$log" 2>&1; then
|
2009-04-04 11:52:23 -06:00
|
|
|
exit 1
|
|
|
|
fi
|
2009-04-04 10:14:20 -06:00
|
|
|
}
|
|
|
|
|
2009-04-04 11:52:23 -06:00
|
|
|
rm -f "$log"
|
|
|
|
|
2009-04-04 10:14:20 -06:00
|
|
|
compile base pc105 us "" ""
|
2009-04-04 11:52:23 -06:00
|
|
|
compile base "" us "" ""
|
2009-04-04 10:14:20 -06:00
|
|
|
compile evdev pc105 us intl ""
|
|
|
|
compile evdev pc105 us intl grp:alts_toggle
|
2009-04-04 11:52:23 -06:00
|
|
|
|
|
|
|
failcompile "" "" "" "" "" ""
|
|
|
|
failcompile base "" "" "" "" ""
|
|
|
|
failcompile base pc105 "" "" "" ""
|
|
|
|
failcompile badrules "" us "" "" ""
|