2011-11-18 11:55:33 +01:00
|
|
|
#!/bin/bash
|
|
|
|
OCAML_LIB=`ocamlc -where`
|
2011-11-20 22:30:59 +01:00
|
|
|
DIR=`pwd`
|
2011-11-18 11:55:33 +01:00
|
|
|
echo "load_printer \"${OCAML_LIB}/ocamlgraph/graph.cmo\"
|
|
|
|
load_printer \"${OCAML_LIB}/menhirLib/menhirLib.cmo\"
|
|
|
|
load_printer \"${OCAML_LIB}/str.cma\"" > debugger_script
|
2011-11-20 22:30:59 +01:00
|
|
|
pushd ../compiler > /dev/null
|
2011-11-18 11:55:33 +01:00
|
|
|
ocamlbuild -clean
|
2011-11-20 22:30:59 +01:00
|
|
|
ocamlbuild heptc.d.byte | sed -n 's/.*\-o \([^ ]\+.cm[io]\).*/load_printer "_build\/\1"/p' | sed 's/\.cmi/.cmo/' >> $DIR/debugger_script
|