makepkg: Avoid find to fork for each rm call
Reported-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Sébastien Luttringer <seblu@seblu.net> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
a03f5f55cd
commit
6831a5f4b1
|
@ -1491,7 +1491,7 @@ tidy_install() {
|
||||||
local pt
|
local pt
|
||||||
for pt in "${PURGE_TARGETS[@]}"; do
|
for pt in "${PURGE_TARGETS[@]}"; do
|
||||||
if [[ ${pt} = "${pt//\/}" ]]; then
|
if [[ ${pt} = "${pt//\/}" ]]; then
|
||||||
find . ! -type d -name "${pt}" -exec rm -f -- '{}' \;
|
find . ! -type d -name "${pt}" -exec rm -f -- '{}' +
|
||||||
else
|
else
|
||||||
rm -f ${pt}
|
rm -f ${pt}
|
||||||
fi
|
fi
|
||||||
|
@ -1500,7 +1500,7 @@ tidy_install() {
|
||||||
|
|
||||||
if check_option "libtool" "n"; then
|
if check_option "libtool" "n"; then
|
||||||
msg2 "$(gettext "Removing "%s" files...")" "libtool"
|
msg2 "$(gettext "Removing "%s" files...")" "libtool"
|
||||||
find . ! -type d -name "*.la" -exec rm -f -- '{}' \;
|
find . ! -type d -name "*.la" -exec rm -f -- '{}' +
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if check_option "staticlibs" "n"; then
|
if check_option "staticlibs" "n"; then
|
||||||
|
|
Loading…
Reference in New Issue