bootstrap: copy latest from phosphor-hwmon
- Add a few Autoconf files created by newer autotools.
- Make minor modifications to file list from phosphor-hwmon
as requested by Vishwa.
- Clean files recursively since autotools can create files
in subdirectories.
- Fix issues reported by shellcheck.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I74e294b44fc16e69d3d640752e4cdae3309578a1
diff --git a/bootstrap.sh b/bootstrap.sh
index 412550f..0beaf29 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,16 +1,18 @@
#!/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" -print0 | xargs -0 -r rm -rf
+ done
exit 0
;;
esac
autoreconf -i
+# shellcheck disable=SC2016
echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'