#!/bin/sh ### Rozhuk Ivan 2019-2020 ### fbsd_fast_update ### # Exit on error. set -e # Init constans. : ${SRC_DIR=/usr/src} # Rebuild and reinstall world first. if [ "${1}" != '-k' ]; then fbsd_build_world.sh fbsd_install_world.sh fbsd_update_boot.sh fi # Rebuild and reinstall kernel. fbsd_build_kernel.sh fbsd_install_kernel.sh # Cleanup. if [ "${1}" != '-k' ]; then set +e if [ "${1}" != '-c' ]; then make -C "${SRC_DIR}" BATCH_DELETE_OLD_FILES=yes delete-old make -C "${SRC_DIR}" BATCH_DELETE_OLD_FILES=yes delete-old-libs fi fi sync exit 0