#ident	"@(#)adm::mk	35.2"
#
#	Shell script for rebuilding the UNIX System
#
trap "exit 1" 1 2 3 15
if [ "$ROOT" = "" ]
then
	PATH=/bin:/etc:/usr/bin; export PATH
fi
#	install /usr/include and /usr/include/sys header files
./:mkhead
./:mksyshead
#	build and install the C library
./:mklib libc
#	build the C compilation tools
if vax || pdp11
then
./:mkcmd $* cc
else
./:mkcmd sgs
fi
#	build the other libraries
./:mklib \*
#	build the system administration tools
if [ "$ROOT" != "" ]
then
	./:mkcmd .adm
fi
#	build all the commands
./:mkcmd $* \*
#	build stand-alone system, if appropriate
if vax || pdp11
then
	./:mkstand
fi
#	build the OS itself

rm -f uts/m68k/cf/lib.*

./:mkuts
#	build the nodes
./:mknodes

exit 0
