diff options
Diffstat (limited to 'bin/pkgpatchex')
-rwxr-xr-x | bin/pkgpatchex | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/bin/pkgpatchex b/bin/pkgpatchex index c475a4b..0c94b8f 100755 --- a/bin/pkgpatchex +++ b/bin/pkgpatchex @@ -1,7 +1,13 @@ -#!/bin/sh +#!/bin/sh -ef -# pkgpatchall -- apply all patches +# pkgpatchex -- apply all patches -ls "$(whereispatch -i)"/patch-* | while read -r patch; do - pkgpatch <"$patch" +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 |