-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path:mkuts
92 lines (90 loc) · 2.09 KB
/
:mkuts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright (c) 1984 AT&T
# All Rights Reserved
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#ident "@(#)mk::mkuts 1.14"
#
# Configure and make the UNIX Operating System with various devices
#
trap "exit 1" 1 2 3 15
MAKE=${MAKE:-make}
SRCDIR=${SRC:-$ROOT/usr/src}/uts
CLOBBER=${CLOBBER:-"ON"}
if vax
then
# configure an OS with the general disk/general tape (gdgt) and the
# general disk/TS11 tape drive (gdts) units.
# Note that the general disk/TU16 tape with TM02 controller (gdht)
# is not configured or tested here.
cd $SRCDIR/vax/cf
for i in gdgt gdts
do
echo "config $i \n$MAKE install VER=$i"
config $i
$MAKE install VER=$i
if [ $? -ne 0 ]
then
echo ":mkuts: *** $MAKE of $i failed"
fi
done
elif pdp11
then
# configure an OS with the general disk and rp disks
cd $SRCDIR/pdp11/cf
for i in gdht gdtm rpht rptm
do
echo "config $i \n$MAKE install VER=$i"
config $i
$MAKE install VER=$i
if [ $? -ne 0 ]
then
echo ":mkuts: *** $MAKE of $i failed"
fi
done
elif u3b
then
# configure an OS with the Kennedy tape drive (un32) and the
# magnetic tape controller configured into DMA channels 11 and 12.
cd $SRCDIR/3b/cf
for i in un32 mtc11 mtc12
do
echo "$MAKE clobber"
$MAKE clobber
echo "config /etc/system.$i"
config $ROOT/etc/system.$i
if [ "$ROOT" != "" ]
then
$MAKE -f ../makefile ENV="VER=$i CH=# SGS=3bs"
else
$MAKE VER=$i
fi
if [ $? -eq 0 ]
then
mv ../unix$i $ROOT/unix.$i
else
echo ":mkuts: *** $MAKE of unix.$i failed"
fi
done
elif u3b2
then
#
cd $SRCDIR/3b2
echo "$MAKE -f unix.mk install SYS=unix"
$MAKE -f unix.mk install SYS=unix
if [ $? -ne 0 ]
then
echo ":mkuts: *** $MAKE of unix failed"
fi
elif u3b15
then
#
cd $SRCDIR/3b15
echo "$MAKE -f unix.mk install SYS=unix VER=2"
$MAKE -f unix.mk install SYS=unix VER=2
if [ $? -ne 0 ]
then
echo ":mkuts: *** $MAKE of unix failed"
fi
fi
exit 0