Patrick Venture | c000f2d | 2018-10-29 19:05:44 -0700 | [diff] [blame] | 1 | #!/bin/sh |
Andrew Jeffery | 2c07f6f | 2018-08-10 16:24:32 +0930 | [diff] [blame] | 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright (C) 2018 IBM Corp. |
| 4 | |
Patrick Venture | c000f2d | 2018-10-29 19:05:44 -0700 | [diff] [blame] | 5 | set -e |
| 6 | set -x |
Andrew Jeffery | 2c07f6f | 2018-08-10 16:24:32 +0930 | [diff] [blame] | 7 | |
| 8 | AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \ |
| 9 | config.guess config.h.in config.sub configure depcomp install-sh \ |
| 10 | ltmain.sh missing *libtool test-driver" |
| 11 | |
| 12 | case $1 in |
| 13 | clean) |
| 14 | test -f Makefile && make maintainer-clean |
| 15 | for file in ${AUTOCONF_FILES}; do |
Patrick Williams | e7c6840 | 2021-04-13 14:41:37 -0500 | [diff] [blame] | 16 | find . -name "$file" -print0 | xargs -0 -r rm -rf |
Andrew Jeffery | 2c07f6f | 2018-08-10 16:24:32 +0930 | [diff] [blame] | 17 | done |
| 18 | exit 0 |
| 19 | ;; |
| 20 | esac |
| 21 | |
Patrick Venture | c000f2d | 2018-10-29 19:05:44 -0700 | [diff] [blame] | 22 | autoreconf -vfi |
Patrick Williams | e7c6840 | 2021-04-13 14:41:37 -0500 | [diff] [blame] | 23 | # shellcheck disable=SC2016 |
Andrew Jeffery | 2c07f6f | 2018-08-10 16:24:32 +0930 | [diff] [blame] | 24 | echo 'Run "./configure ${CONFIGURE_FLAGS} && make"' |