blob: 0d209c8774b9c7d569d2adb899af418be86cb2b7 [file] [log] [blame]
Deepak Kodihalli92a63412017-03-17 05:01:00 -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 Williams4c1079e2021-04-13 14:41:37 -050011 find . -name "$file" -print0 | xargs -0 -r rm -rf
Deepak Kodihalli92a63412017-03-17 05:01:00 -050012 done
13 exit 0
14 ;;
15esac
16
17autoreconf -i
Patrick Williams4c1079e2021-04-13 14:41:37 -050018# shellcheck disable=SC2016
Deepak Kodihalli92a63412017-03-17 05:01:00 -050019echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'