7 echo "$PROG [-inter] [-native] [-I dir .. -I dir] Module"
17 dir=`echo "$2" | sed "s:^+:$(ocamlc -where)/:"`
38 if test "$#" -eq 0; then break; fi
40 if test "$NATIVE" = "1"; then
46 for MODULE in $MODULES; do
47 module="$(echo $MODULE | cut -b1 | tr A-Z a-z)$(echo $MODULE | cut -b2-)"
48 echo "$INCLUDES" | while read include; do
49 if test -z "$include"; then continue; fi
50 base="$include/$module"
51 if test \( "$INTER" = "1" \) -a \( -f "$base".mli \) ; then
52 ## if we want to depend only on cmi of a module
53 echo -n "$base"."cmi "
54 elif test -f "$base".ml -o -f "$base".mly -o -f "$base".mll -o -f "$base".pack; then
55 ## else we depend on the implementation
56 echo -n "$base"."$ext "
58 elif test -f "$base".mli; then
59 ## and fall back on depending on the cmi if the cmx is not available
60 ## (which prevents cross-module inlining in the case of cmx)
61 echo -n "$base"."cmi "