blob: 50b75b7ee911f6fae31e567ac82983d0c7f389c2 [file] [log] [blame]
Patrick Williamsf4e58e62016-08-12 21:57:52 -05001#!/bin/sh
2
Matthew Barth41cae2b2016-09-27 11:10:45 -05003AUTOCONF_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"
Patrick Williamsf4e58e62016-08-12 21:57:52 -05006
7case $1 in
8 clean)
9 test -f Makefile && make maintainer-clean
Patrick Williamsb8983142016-09-15 21:00:27 -050010 for file in ${AUTOCONF_FILES}; do
11 find -name "$file" | xargs -r rm -rf
12 done
Patrick Williamsf4e58e62016-08-12 21:57:52 -050013 exit 0
14 ;;
15esac
16
17autoreconf -i
18echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'