| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# Wrapper around ocamldebug for Rocq |
| 4 |
|
| 5 |
# This file is to be launched via the generated script ocamldebug-coq, |
| 6 |
# which will set the env variables $OCAMLDEBUG, $CAMLP5LIB, $COQTOP |
| 7 |
# Anyway, just in case someone tries to use this script directly, |
| 8 |
# here are some reasonable default values |
| 9 |
|
| 10 |
[ -z "$OCAMLDEBUG" ] && OCAMLDEBUG=ocamldebug |
| 11 |
[ -z "$COQTOP" -a -d "$PWD/kernel" ] && COQTOP=$PWD |
| 12 |
[ -z "$COQTOP" -a -d "$PWD/../kernel" ] && COQTOP=`dirname $PWD` |
| 13 |
|
| 14 |
export CAML_LD_LIBRARY_PATH=$COQTOP/kernel/byterun:$CAML_LD_LIBRARY_PATH |
| 15 |
|
| 16 |
exec $OCAMLDEBUG \ |
| 17 |
-I +threads \ |
| 18 |
-I $COQTOP \ |
| 19 |
-I $COQTOP/config -I $COQTOP/printing -I $COQTOP/grammar -I $COQTOP/clib \ |
| 20 |
-I $COQTOP/gramlib/.pack \ |
| 21 |
-I $COQTOP/lib -I $COQTOP/kernel -I $COQTOP/kernel/byterun \ |
| 22 |
-I $COQTOP/library -I $COQTOP/engine -I $COQTOP/sysinit \ |
| 23 |
-I $COQTOP/pretyping -I $COQTOP/parsing -I $COQTOP/vernac \ |
| 24 |
-I $COQTOP/interp -I $COQTOP/proofs -I $COQTOP/tactics -I $COQTOP/stm \ |
| 25 |
-I $COQTOP/toplevel -I $COQTOP/dev -I $COQTOP/config -I $COQTOP/ltac \ |
| 26 |
-I $COQTOP/plugins/cc -I $COQTOP/plugins/dp \ |
| 27 |
-I $COQTOP/plugins/extraction -I $COQTOP/plugins/field \ |
| 28 |
-I $COQTOP/plugins/firstorder \ |
| 29 |
-I $COQTOP/plugins/funind -I $COQTOP/plugins/groebner \ |
| 30 |
-I $COQTOP/plugins/interface -I $COQTOP/plugins/micromega \ |
| 31 |
-I $COQTOP/plugins/omega -I $COQTOP/plugins/quote \ |
| 32 |
-I $COQTOP/plugins/ring \ |
| 33 |
-I $COQTOP/plugins/rtauto \ |
| 34 |
-I $COQTOP/plugins/subtac -I $COQTOP/plugins/syntax \ |
| 35 |
-I $COQTOP/plugins/xml -I $COQTOP/plugins/ltac \ |
| 36 |
-I $COQTOP/ide \ |
| 37 |
$(ocamlfind query -recursive -i-format zarith) \ |
| 38 |
"$@" |