#!/bin/sh
#########################################################################
#                                                                       #
#                            Objective Caml                             #
#                                                                       #
#            Maxence Guesdon, projet Cristal, INRIA Rocquencourt        #
#                                                                       #
#   Copyright 2002 Institut National de Recherche en Informatique et    #
#   en Automatique.  All rights reserved.  This file is distributed     #
#   under the terms of the GNU General Public License version 2.        #
#                                                                       #
#########################################################################
# From the original ocamlmktop script by Damien Doligez

# $Id: cam-mktop.in 84 2005-09-09 14:17:13Z zoggy $


# Multi-shell script.  Works under Bourne Shell, MPW Shell, zsh.

if : == x
then # Bourne Shell or zsh
     exec /usr/bin/ocamlc -ccopt "-L"`/usr/bin/ocamlc -where`/lablgtk2 -I /usr/lib/ocaml/3.09.2/cameleon -linkall topcameleon.cma "$@" camtop_toplevel.cmo
else # MPW Shell
     /usr/bin/ocamlc -ccopt "-L"`/usr/bin/ocamlc -where`/lablgtk2 -I /usr/lib/ocaml/3.09.2/cameleon -linkall topcameleon.cma {"parameters"} camtop_toplevel.cmo
     exit {status}
End # uppercase E because "end" is a keyword in zsh
fi
