ocaml/camlp4/ocaml_src/tools/ocamlc.sh

9 lines
178 B
Bash
Executable File

#!/bin/sh -e
if test "`basename $OTOP`" != "ocaml_stuff"; then
COMM="$OTOP/boot/ocamlrun$EXE $OTOP/ocamlc -I $OTOP/stdlib"
else
COMM=ocamlc$OPT
fi
echo $COMM $*
$COMM $*