#! /bin/sh
#---------------------------------------------------------------------------#
# vim: ts=4 sw=4 et ft=sh
#---------------------------------------------------------------------------#
# scripts/mercury.  Generated from mercury.in by configure.
#---------------------------------------------------------------------------#
# Copyright (C) 1994-1998, 2000-2005 The University of Melbourne.
# Copyright (C) 2020 The Mercury team.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#---------------------------------------------------------------------------#
#
# mercury - Melbourne Mercury Compiler.
#
# Use `mercury -h' for help.
#
# Environment variables: MERCURY_STDLIB_DIR, MERCURY_CONFIG_DIR,
# MERCURY_COMPILER, MERCURY_C_COMPILER, MERCURY_DEFAULT_GRADE,
# MERCURY_DEFAULT_OPT_LEVEL.

prefix=/usr
exec_prefix=${prefix}
MERCURY_COMPILER=${MERCURY_COMPILER-"${exec_prefix}/bin/mercury_compile"}
MERCURY_CONFIG_DIR=${MERCURY_CONFIG_DIR-${MERCURY_STDLIB_DIR-'/usr/lib64/mercury'}}
export MERCURY_COMPILER MERCURY_CONFIG_DIR

# Set the MACOSX_DEPLOYMENT_TARGET environment variable if needed.


case $# in
	0)
        exec ${MERCURY_COMPILER}
        ;;
	*)
        exec ${MERCURY_COMPILER} "$@"
        ;;
esac
