buildconf: use find -execdir instead, remove -print and the ares files

Follow-up to 1e41bec96a

Suggested-by: Marc Hörsken
This commit is contained in:
Daniel Stenberg 2020-04-15 14:53:53 +02:00
parent 1e41bec96a
commit c712009838
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___ # | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____| # \___|\___/|_| \_\_____|
# #
# Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. # Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
# #
# This software is licensed as described in the file COPYING, which # This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms # you should have received as part of this distribution. The terms
@ -64,7 +64,7 @@ findtool(){
# #
removethis(){ removethis(){
if test "$#" = "1"; then if test "$#" = "1"; then
find . -depth -name $1 -print -exec rm -rf {} \; find . -depth -name $1 -execdir rm -rf {} \;
fi fi
} }
@ -282,9 +282,6 @@ for fname in .deps \
Makefile.in \ Makefile.in \
aclocal.m4 \ aclocal.m4 \
aclocal.m4.bak \ aclocal.m4.bak \
ares_build.h \
ares_config.h \
ares_config.h.in \
autom4te.cache \ autom4te.cache \
compile \ compile \
config.guess \ config.guess \