File: Configure-os.c

package info (click to toggle)
exim4 4.63-17
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 11,232 kB
  • ctags: 6,113
  • sloc: ansic: 86,696; sh: 4,495; xml: 1,876; makefile: 540; perl: 336
file content (31 lines) | stat: -rwxr-xr-x 958 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh
# $Cambridge: exim/exim-src/scripts/Configure-os.c,v 1.1 2004/10/06 15:07:40 ph10 Exp $

# Shell script to build os.c. There doesn't have to be an OS-specific os.c
# file, but if there is, it gets copied at the start of os.c. The basic src
# copy of os.c contains generic functions, controlled in some cases by
# macro switches so that where they are common to a number of OS, they can
# just be switched in.

scripts=../scripts

# First off, get the OS type, and check that there is a make file for it.

os=`$scripts/os-type -generic` || exit 1

if	test ! -r ../OS/Makefile-$os
then    echo ""
	echo "*** Sorry - operating system $os is not supported"
        echo "*** See OS/Makefile-* for supported systems" 1>&2
        echo ""
	exit 1;
fi

# Now build the file

rm -f os.c
echo '#include "exim.h"' > os.c || exit 1
test -r ../OS/os.c-$os && cat ../OS/os.c-$os >> os.c
echo '#include "../src/os.c"' >> os.c || exit 1

# End of Configure-os.c