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.

22 lines
422 B
Plaintext

#!/bin/bash
#Small wrapper to deal with compilation of the compiler and the stdlib.
COMPILER=heptc.byte
COMPILER_DIR=compiler
HEPTC=$COMPILER_DIR/$COMPILER
if [ ! -x $HEPTC ] #compile the compiler
then
cd compiler
ocamlbuild $COMPILER
cd -
fi
if [ ! -e lib/pervasives.epci ] #compile the stdlib
then
$HEPTC -nopervasives lib/pervasives.epi
fi
$HEPTC -stdlib lib "$@" #call the compiler with the passed arguments.