debugger_script_gen

This commit is contained in:
Léonard Gérard 2011-11-20 22:30:59 +01:00
parent 442f38b196
commit 25ce5edbd0

View file

@ -1,7 +1,9 @@
#!/bin/bash
OCAML_LIB=`ocamlc -where`
DIR=`pwd`
echo "load_printer \"${OCAML_LIB}/ocamlgraph/graph.cmo\"
load_printer \"${OCAML_LIB}/menhirLib/menhirLib.cmo\"
load_printer \"${OCAML_LIB}/str.cma\"" > debugger_script
pushd ../compiler > /dev/null
ocamlbuild -clean
ocamlbuild heptc.d.byte | sed -n 's/.*\-o \([^ ]\+.cm[io]\).*/load_printer "_build\/\1"/p' | sed 's/\.cmi/.cmo/' >> debugger_script
ocamlbuild heptc.d.byte | sed -n 's/.*\-o \([^ ]\+.cm[io]\).*/load_printer "_build\/\1"/p' | sed 's/\.cmi/.cmo/' >> $DIR/debugger_script