mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-16 22:35:41 +00:00
16 lines
432 B
Bash
16 lines
432 B
Bash
#!/bin/sh
|
|
#
|
|
# MC - Mercury Compiler.
|
|
#
|
|
# Use `mc -h' for help.
|
|
#
|
|
# Environment variables: MERCURY_INT_DIR, MERCURY_DEP_DIR, MERCURY_C_INCL_DIR,
|
|
# MERCURY_COMPILER.
|
|
|
|
INTDIR=${MERCURY_INT_DIR:-@LIBDIR@/ints}
|
|
DEPDIR=${MERCURY_DEP_DIR:-@LIBDIR@/deps}
|
|
C_INCL=${MERCURY_C_INCL_DIR:-@LIBDIR@/inc}
|
|
MC=${MERCURY_COMPILER:-"@LIBDIR@/bin/@FULLARCH@/mercury_compile --"}
|
|
|
|
exec $MC -I "$INTDIR" -I "$DEPDIR" --c-include-directory "$C_INCL" "$@"
|