Commit | Line | Data |
---|---|---|
e1a31032 KM |
1 | #!/bin/sh - |
2 | # | |
3 | # Copyright (c) 1989 Jan-Simon Pendry | |
4 | # Copyright (c) 1989 Imperial College of Science, Technology & Medicine | |
b013580c KB |
5 | # Copyright (c) 1989, 1993 |
6 | # The Regents of the University of California. All rights reserved. | |
e1a31032 KM |
7 | # |
8 | # This code is derived from software contributed to Berkeley by | |
9 | # Jan-Simon Pendry at Imperial College, London. | |
10 | # | |
11 | # %sccs.include.redist.sh% | |
12 | # | |
db3e2f43 | 13 | # @(#)Configure 8.1 (Berkeley) %G% |
8d2991d5 JSP |
14 | # |
15 | # $Id: Configure,v 5.2.1.2 91/05/07 22:20:26 jsp Alpha $ | |
e1a31032 KM |
16 | # |
17 | echo "Making ./arch and ./os-type executable ..." | |
18 | until chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done | |
19 | echo "Checking ./arch and ./os-type ..." | |
20 | echo "" | |
21 | arch="`sh ./arch 2>/dev/null`" | |
22 | os="`sh ./os-type 2>/dev/null`" | |
23 | case "$arch" in | |
24 | "") echo "./arch doesn't produce an answer - please check it" >&2; exit 1;; | |
25 | esac | |
26 | case "$os" in | |
27 | "") echo "./os-type doesn't produce an answer - please check it" >&2; exit 1;; | |
28 | esac | |
29 | cat << % | |
30 | This machine appears to be a "$arch" running "$os". | |
31 | If that is correct just run make. | |
32 | If those are incorrect please edit ./arch and ./os-type | |
33 | % | |
34 | exit 0 |