blob: 6b3c8b9347153e874658a8c2bd9b7d5853dcdf70 [file] [log] [blame]
Andrew Geissler328889d2016-10-10 12:43:48 -05001#!/bin/sh -xe
2
3AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
4 config.guess config.h.in config.sub configure depcomp install-sh \
5 ltmain.sh missing *libtool test-driver"
6
7case $1 in
8 clean)
9 test -f Makefile && make maintainer-clean
10 for file in ${AUTOCONF_FILES}; do
Patrick Williams886ccb12021-04-13 14:57:09 -050011 find . -name "$file" -print0 | xargs -0 -r rm -rf
Andrew Geissler328889d2016-10-10 12:43:48 -050012 done
13 exit 0
14 ;;
15esac
16
17autoreconf -i
Patrick Williams886ccb12021-04-13 14:57:09 -050018# shellcheck disable=SC2016
19echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'