#!/bin/sh -ef # pkgpatchex -- apply all patches IFS=' ' for patch in $(find $(whereispatch -i) -name 'patch-*' -type f); do echo "${0##*/}: applying $(basename $patch)" pkgpatch <$patch done pkgclear 2>/dev/null || true