#!/bin/sh

# Assuming /usr/src is populated, this will build and
# install the kernel.
#
# It doesn't update the repo first. If you want that, run:
#
#	cd /usr/src && cvs up -Pd

set -e

cd /usr/src/sys/arch/`machine -a`/conf
config GENERIC.MP
cd ../compile/GENERIC.MP
doas make clean
make -j2
doas make install
