Files
mercury/scripts/mprof.in
Julien Fischer 467a2c978d Set the executable installation directory using --bindir.
Support setting an alternative executable installation directory using the
configure script's --bindir option.

Patch contributed by Keri Harris.

scripts/Mmake.vars.in:
scripts/mdprof.in:
scripts/mmc.in:
scripts/mprof.in:
    As above.
2020-04-11 03:17:48 +10:00

23 lines
637 B
Bash

#! /bin/sh
# @configure_input@
#---------------------------------------------------------------------------#
# Copyright (C) 1995, 2005 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.
#---------------------------------------------------------------------------#
#
# MPROF - Mercury Profiler
#
# Use `mprof -h' for help.
#
# Environment variables: MERCURY_PROFILER.
prefix=@prefix@
exec_prefix=@exec_prefix@
MPROF=${MERCURY_PROFILER="@bindir@/mercury_profile"}
case $# in
0) exec $MPROF ;;
*) exec $MPROF "$@" ;;
esac