mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-27 07:14:20 +00:00
mc.in, mprof.in: Remove the "--", since it is no longer needed. mcn.in, mcs.in: These scripts are no longer necessary - use `mc' instead.
24 lines
880 B
Bash
24 lines
880 B
Bash
#! /bin/sh
|
|
# @configure_input@
|
|
#---------------------------------------------------------------------------#
|
|
# Copyright (C) 1995 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.
|
|
#---------------------------------------------------------------------------#
|
|
#
|
|
# MC - Mercury Compiler.
|
|
#
|
|
# Use `mc -h' for help.
|
|
#
|
|
# Environment variables: MERCURY_INT_DIR, MERCURY_C_INCL_DIR,
|
|
# MERCURY_COMPILER, MERCURY_DEFAULT_GRADE, MERCURY_C_COMPILER.
|
|
|
|
INTDIR=${MERCURY_INT_DIR=@LIBDIR@/ints}
|
|
C_INCL=${MERCURY_C_INCL_DIR=@LIBDIR@/inc}
|
|
MC=${MERCURY_COMPILER="@LIBDIR@/bin/@FULLARCH@/mercury_compile"}
|
|
DEFAULT_GRADE=${MERCURY_DEFAULT_GRADE=@DEFAULT_GRADE@}
|
|
CC=${MERCURY_C_COMPILER=@CC@}
|
|
|
|
exec $MC -I "$INTDIR" --c-include-directory "$C_INCL" \
|
|
--cc "$CC" --grade "$DEFAULT_GRADE" "$@"
|