#!/bin/sh

# wrap around ocamldebug for Coq

export COQTOP=COQTOPDIRECTORY
export COQLIB=COQLIBDIRECTORY
export COQTH=$COQLIB/theories
CAMLBIN=CAMLBINDIRECTORY
CAMLP4LIB=CAMLP4LIBDIRECTORY
OCAMLDEBUG=$CAMLBIN/ocamldebug

exec $OCAMLDEBUG \
	-I $CAMLP4LIB \
	-I $COQTOP \
	-I $COQTOP/config \
	-I $COQTOP/lib -I $COQTOP/kernel \
	-I $COQTOP/library -I $COQTOP/pretyping -I $COQTOP/parsing \
        -I $COQTOP/interp -I $COQTOP/proofs -I $COQTOP/tactics \
	-I $COQTOP/toplevel -I $COQTOP/dev -I $COQTOP/config \
	-I $COQTOP/translate \
        -I $COQTOP/contrib/extraction -I $COQTOP/contrib/field \
        -I $COQTOP/contrib/fourier    -I $COQTOP/contrib/firstorder \
        -I $COQTOP/contrib/interface  -I $COQTOP/contrib/jprover \
        -I $COQTOP/contrib/omega      -I $COQTOP/contrib/romega \
        -I $COQTOP/contrib/ring       -I $COQTOP/contrib/xml \
	-I $COQTOP/contrib/subtac     -I $COQTOP/contrib/funind \
        -I $COQTOP/contrib/rtauto     -I $COQTOP/contrib/setoid_ring \
        -I $COQTOP/contrib/recdef     -I $COQTOP/contrib/dp \
	$*
