debugger_script_gen
This commit is contained in:
parent
442f38b196
commit
25ce5edbd0
1 changed files with 3 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue