Apply multiple .patch files
If cat
works, why not use it?
To use find
and xargs
:
find dirname -name namespec -print0 | xargs -0 patch patchargs
Example:
find src/networking -type f -name 'network*.patch' -print0 | xargs -0 patch -p2
Assuming you're using bash/sh/zsh etc...
cd /path/to/source
for i in /path/to/patches/*.patch; do patch -p1 < $i; done