heptagon/test/scripts/config

31 lines
481 B
Plaintext
Raw Normal View History

2012-07-16 11:22:56 +02:00
checkdir=_check_builds
shopt -s nullglob
# script de test
COMPILER_DIR="../compiler"
if [ -x $COMPILER_DIR/heptc.native ];
then
COMPILER=heptc.native
else
if [ -x $COMPILER_DIR/heptc.byte ];
then
COMPILER=heptc.byte
else
echo "Error: no compiler found."
exit 2
fi
2012-07-16 11:22:56 +02:00
fi
HEPTC="../$COMPILER_DIR/$COMPILER -stdlib ../../lib"
2012-07-16 11:22:56 +02:00
CC="gcc -std=c99 -I ../../../lib/c"
LD="gcc"
NBSTEP=100
if [ ! -x $checkdir ];
then
mkdir $checkdir
fi