7 echo "$PROG [-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 base="$include/$module"
50 if test -z "$include"; then continue; fi
51 if test \( "$INTER" = "1" \) -a \( -f "$base".mli \) ; then
52 echo -n "$base"."cmi "
53 elif test -f "$base".ml -o -f "$base".mly -o -f "$base".mll -o -f "$base".pack; then
54 echo -n "$base"."$ext "
56 elif test -f "$base".mli; then
57 echo -n "$base"."cmi "