1 2 3 4 5 6 7 8
local patch patch=$1 shift ifchange $patch eval $(getvars build_dir) patch --directory=$build_dir <$patch "$@" \ || die "$0: Patch failed: ${(qqq)patch}" # vim: fileencoding=utf8 ft=zsh noet sw=4 ts=4 sts=4