# Base source of start-up shell script for the Exim Monitor. Used to set the # required environment variables before running the program. Using script # rather than a configuration file means that computation can be done. # The build process concatenates on the front of this various settings from # os-specific files and from the user's configuration file. # Copyright (c) 2004 - 2012 University of Cambridge. # See the file NOTICE for conditions of use and distribution. # Except when they appear in comments, the following placeholders in this # source are replaced when it is turned into a runnable script: # # CONFIGURE_FILE_USE_NODE # CONFIGURE_FILE # BIN_DIRECTORY # BASENAME_COMMAND # HOSTNAME_COMMAND # X11_LD_LIBRARY # PROCESSED_FLAG # See if caller wants to invoke gdb use_gdb='' case ${1:-foo} in gdb*) use_gdb="$1"; shift ;; esac # Save arguments (can be the usual X parameters) cmd_args="$@" # See if this installation is using the esoteric "USE_NODE" feature of Exim, # in which it uses the host's name as a suffix for the configuration file name. if [ "CONFIGURE_FILE_USE_NODE" = "yes" ]; then hostsuffix=.`uname -n` fi # Now find the configuration file name. This has got complicated because # CONFIGURE_FILE may now be a list of files. The one that is used is the first # one that exists. Mimic the code in readconf.c by testing first for the # suffixed file in each case. set `awk -F: '{ for (i = 1; i <= NF; i++) print $i }' <