#! /bin/sh # @configure_input@ #---------------------------------------------------------------------------# # Copyright (C) 1994-1998, 2000-2003 The University of Melbourne. # This file may only be copied under the terms of the GNU General # Public License - see the file COPYING in the Mercury distribution. #---------------------------------------------------------------------------# # # MMC - Melbourne Mercury Compiler. # # Use `mmc -h' for help. # # Environment variables: MERCURY_STDLIB_DIR, MERCURY_CONFIG_DIR, # MERCURY_COMPILER, MERCURY_C_COMPILER, MERCURY_DEFAULT_GRADE, # MERCURY_DEFAULT_OPT_LEVEL. MERCURY_COMPILER=${MERCURY_COMPILER-'@LIBDIR@/bin/@FULLARCH@/mercury_compile'} MERCURY_CONFIG_DIR=${MERCURY_CONFIG_DIR-${MERCURY_STDLIB_DIR-'@CONFIG_LIBDIR@'}} export MERCURY_COMPILER MERCURY_CONFIG_DIR case $# in 0) exec $MERCURY_COMPILER ;; *) exec $MERCURY_COMPILER "$@" ;; esac