#!/bin/sh # pkgpatchall -- apply all patches ls "$(whereispatch -i)"/patch-* | while read -r patch; do pkgpatch <"$patch" done