You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
453 B
Plaintext
35 lines
453 B
Plaintext
12 years ago
|
#!/bin/bash
|
||
|
|
||
|
checkdir=_check_builds
|
||
|
|
||
|
shopt -s nullglob
|
||
|
|
||
|
# script de test
|
||
|
|
||
|
COMPILER_DIR="../compiler"
|
||
|
if [ -x $COMPILER_DIR/heptc.native ];
|
||
|
then
|
||
|
COMPILER=heptc.native
|
||
|
else
|
||
|
COMPILER=heptc.byte
|
||
|
fi
|
||
|
|
||
|
HEPTC=../$COMPILER_DIR/$COMPILER
|
||
|
|
||
|
progpath=$1
|
||
|
shift
|
||
|
coption=$*
|
||
|
|
||
|
cp $progpath $checkdir
|
||
|
|
||
|
pushd $checkdir > /dev/null
|
||
|
|
||
|
heptprog=`basename $progpath`
|
||
|
echo $HEPTC $coption $heptprog
|
||
|
$HEPTC $coption $heptprog
|
||
|
res=$?
|
||
|
|
||
|
popd $checkdir > /dev/null
|
||
|
|
||
|
exit $res
|