#!/bin/sh usage() { cat >&2 << EOF Usage: ${0} [] Checkouts to and builds it with (see build.sh for more information). EOF exit 1 } set -e set -u readonly script_path="$(cd "$(dirname "${0}")" && pwd)" readonly branch="${1?Missing $(usage)}" shift echo $branch cd /usr/src git fetch --all --prune git checkout -f "${branch}" #fetch -o D34607.diff 'https://reviews.freebsd.org/D34607?download=true' #patch -p1 < D34607.diff ${script_path}/build.sh "$@"