Vishwanatha Subbanna | b21fda7 | 2016-10-17 17:46:37 +0530 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile config.* \ |
Patrick Williams | 9d407bf | 2021-04-13 15:02:02 -0500 | [diff] [blame] | 4 | configure depcomp install-sh ltmain.sh missing *libtool test-driver" |
Vishwanatha Subbanna | b21fda7 | 2016-10-17 17:46:37 +0530 | [diff] [blame] | 5 | |
| 6 | case $1 in |
| 7 | clean) |
| 8 | test -f Makefile && make maintainer-clean |
Patrick Williams | 9d407bf | 2021-04-13 15:02:02 -0500 | [diff] [blame] | 9 | for file in ${AUTOCONF_FILES}; do |
| 10 | find . -name "$file" -print0 | xargs -0 -r rm -rf |
| 11 | done |
Vishwanatha Subbanna | b21fda7 | 2016-10-17 17:46:37 +0530 | [diff] [blame] | 12 | exit 0 |
| 13 | ;; |
| 14 | esac |
| 15 | |
| 16 | autoreconf -i |
Patrick Williams | 9d407bf | 2021-04-13 15:02:02 -0500 | [diff] [blame] | 17 | # shellcheck disable=SC2016 |
Vishwanatha Subbanna | b21fda7 | 2016-10-17 17:46:37 +0530 | [diff] [blame] | 18 | echo 'Run "./configure ${CONFIGURE_FLAGS} && make"' |