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