1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/Tools/portbuild/scripts/doupgrademach

28 lines
496 B
Plaintext
Raw Normal View History

#!/bin/sh
# configurable variables
master=bento
chroot=/a/asami/chroot
kernelconfig=CLUSTER
PATH=/sbin:/usr/sbin:$PATH
if [ -f /usr/src/Makefile ]; then
mv /usr/src /usr/old.src
mv /usr/obj /usr/old.obj
mkdir /usr/src /usr/obj
fi
mount $master:$chroot/usr/src /usr/src
mount $master:$chroot/usr/obj /usr/obj
echo "installing world"
cd /usr/src && make installworld > /usr/tmp/make.0 2>&1 </dev/null
cd /sys/compile/$kernelconfig && make install
cd /
umount /usr/src /usr/obj
reboot