2
# $Cambridge: exim/exim-src/scripts/Configure-eximon,v 1.1 2004/10/06 15:07:40 ph10 Exp $
4
# Shell script to build the configurable part of the Exim monitor's start-up
5
# script. This is built from various configuration files. The final part is
6
# added in the Makefile, using various macros that are available at that stage.
10
# First off, get the OS type, and check that there is a make file for it.
12
os=`$scripts/os-type -generic` || exit 1
14
if test ! -r ../OS/Makefile-$os
16
echo "*** Sorry - operating system $os is not supported"
17
echo "*** See OS/Makefile-* for supported systems" 1>&2
22
# We also need the architecture type, in order to test for any architecture-
23
# specific configuration files.
25
arch=`$scripts/arch-type` || exit 1
27
# Build a file called eximon in the current directory by joining
28
# the generic default configure file, the OS base configure file, and then
29
# local generic, OS-specific, architecture-specific, and OS+architecture-
30
# specific configurationfiles, if they exist. These files all contain variable
31
# definitions, with later definitions overriding earlier ones.
33
echo "#!/bin/sh" > eximon
36
# Concatenate the configuration files that exist
38
for f in OS/eximon.conf-Default \
41
Local/eximon.conf-$os \
42
Local/eximon.conf-$arch \
43
Local/eximon.conf-$os-$arch
46
sed '/^#/d;/^[ ]*$/d' ../$f || exit 1
50
done >> eximon || exit 1
52
# End of Configure-eximon