bootstrap.sh: Enhance clean for subdirs and test support
Change-Id: Ieebaa759f59c6c2a020eb18120d4b48b7dc4a4f9
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/bootstrap.sh b/bootstrap.sh
index 4501fb1..2795095 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,13 +1,14 @@
#!/bin/sh
AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile config.* \
- configure depcomp install-sh ltmain.sh missing *libtool"
+ configure depcomp install-sh ltmain.sh missing *libtool test-driver"
case $1 in
clean)
test -f Makefile && make maintainer-clean
- rm -rf ${AUTOCONF_FILES}
-
+ for file in ${AUTOCONF_FILES}; do
+ find -name "$file" | xargs -r rm -rf
+ done
exit 0
;;
esac