Files
mercury/scripts/mdprof.in
Zoltan Somogyi 1a0b253854 Add rules for installing the deep profiler from source. (Installing it from
Estimated hours taken: 2
Branches: main

Add rules for installing the deep profiler from source. (Installing it from
binary distributions is future work.)

configure.in:
	Add an option, --enable-deep-profiler=/path/name, that specifies the
	path name of the directory in which the CGI script should be installed
	(the default is apache's /usr/lib/cgi-bin).

	Report an error if the user requests deep profiling but it is not
	available.

Mmakefile:
	Remind the user to copy the CGI script to its directory.

scripts/Mmakefile:
	Document why we can't install the CGI script automatically.

	Be consistent about the order of rules.

scripts/Mmake.vars.in:
	Record the CGI directory for use in the toplevel Mmakefile.

scripts/mdprof.in:
	Record that mdprof_cgi and mdprof_server are installed in the directory
	for non-user-visible programs, alongside mercury_compile and
	mercury_profile.
2001-07-09 04:58:52 +00:00

21 lines
1016 B
Bash

#! /bin/sh
#---------------------------------------------------------------------------#
# Copyright (C) 2001 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.
#---------------------------------------------------------------------------#
#
# This should set up PATH to include the directory containing the installed
# mdprof_cgi and mprof_server programs. This should allow this shell script
# to find the right version of mdprof_cgi, and it should allow the mdprof_cgi
# process to find the right mdprof_server.
#
# We ignore the argument(s) of this script. The web server passes us the same
# information in the environment variable QUERY_STRING, but QUERY_STRING is
# unprocessed, which is what we want; the web servers breaks up QUERY_STRING
# on boundaries inappropriate for us when computing the command line arguments.
PATH=@prefix@/lib/mercury/bin/@FULLARCH@:$PATH
export PATH
exec mdprof_cgi